Documentation ¶
Index ¶
- Variables
- func Execute()
- func LoggingArgs(cmd *cobra.Command)
- func PersistentPostRun(cmd *cobra.Command) error
- func PersistentPreRun(cmd *cobra.Command) error
- func PreRunLogger(cmd *cobra.Command) error
- func PreRunS3Client(cmd *cobra.Command) error
- func RunDoc(cmd *cobra.Command) error
- func S3Args(cmd *cobra.Command)
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "import", Short: "cli for importing dictybase data for migration", Long: `A command line application for importing dictyBase data. The application is organized into subcommands which in turn has their own subcommands for importing different kind of data. Each loading sub-subcommand is generally expected to consume csv formatted data either directly from a source file or through a file that is kept in a particular bucket of a S3 server.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if err := PersistentPreRun(cmd); err != nil { return errors.Errorf("error in executing pre run %s", err) } return nil }, PersistentPostRunE: func(cmd *cobra.Command, args []string) error { if err := PersistentPostRun(cmd); err != nil { return errors.Errorf("error in executing post-run %s", err) } return nil }, RunE: func(cmd *cobra.Command, args []string) error { if err := RunDoc(cmd); err != nil { return errors.Errorf("error in generating docs %s", err) } return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func LoggingArgs ¶
func PersistentPostRun ¶
func PersistentPreRun ¶
func PreRunLogger ¶
func PreRunS3Client ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.