Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "roper", Short: "A Yum repo server and manager", Long: ` Roper is a server that can manage your Yum repositories, and serve them up on a built in web server. Most notably, it will watch configured repositories and automatically run the 'createrepo' program against them (if desired) when changes are detected.`, PersistentPreRun: func(cmd *cobra.Command, args []string) { // create controller var err error rc, err = controller.Init(dbPath, crPath) if err != nil { log.Fatalf("Unable to initialize application: %s", err) } }, PersistentPostRun: func(cmd *cobra.Command, args []string) { if rc != nil { rc.Close() } }, }
This 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.