cli

package
v0.0.0-...-d59ed34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

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 LoggingArgs(cmd *cobra.Command)

func PersistentPostRun

func PersistentPostRun(cmd *cobra.Command) error

func PersistentPreRun

func PersistentPreRun(cmd *cobra.Command) error

func PreRunLogger

func PreRunLogger(cmd *cobra.Command) error

func PreRunS3Client

func PreRunS3Client(cmd *cobra.Command) error

func RunDoc

func RunDoc(cmd *cobra.Command) error

func S3Args

func S3Args(cmd *cobra.Command)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL