Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string Revision string )
View Source
var RootCmd = &cobra.Command{ Use: "git-ghost", Short: "git-ghost", SilenceErrors: false, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if cmd.Use == "version" { return nil } err := validateEnvironment() if err != nil { return err } err = globalOpts.SetDefaults() if err != nil { return err } err = globalOpts.Validate() if err != nil { return err } switch globalOpts.verbose { case 0: log.SetLevel(log.ErrorLevel) case 1: log.SetLevel(log.InfoLevel) case 2: log.SetLevel(log.DebugLevel) case 3: log.SetLevel(log.TraceLevel) } return nil }, }
Functions ¶
func NewDeleteCommand ¶
func NewListCommand ¶
func NewPullCommand ¶
func NewPushCommand ¶
func NewShowCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.