Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: os.Args[0], Short: "Manage labels and milestones across many repos", RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { log.Printf("no config file specified - defaulting to 'config.json'\n") args = []string{"config.json"} } else if len(args) > 1 { log.Printf("error: too many arguments specified - provide only the config filename (%+v)\n", args) return errors.New("too many args") } cachePath, err := homedir.Expand(viper.GetString("cache")) if err != nil { return err } opts := sync.Options{ DryRun: viper.GetBool("dry-run"), NoCache: viper.GetBool("no-cache"), CachePath: cachePath, } c, err := config.ParseFile(args[0]) if err != nil { return err } err = sync.Sync(c, opts) return err }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.