123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- package control
- import (
- "os"
- "github.com/codegangsta/cli"
- "github.com/rancherio/os/config"
- )
- func Main() {
- app := cli.NewApp()
- app.Name = os.Args[0]
- app.Usage = "Control and configure RancherOS"
- app.Version = config.VERSION
- app.Author = "Rancher Labs, Inc."
- app.EnableBashCompletion = true
- app.Commands = []cli.Command{
- {
- Name: "config",
- ShortName: "c",
- Usage: "configure settings",
- HideHelp: true,
- Subcommands: configSubcommands(),
- },
- {
- Name: "dev",
- ShortName: "d",
- Usage: "dev spec",
- HideHelp: true,
- SkipFlagParsing: true,
- Action: devAction,
- },
- {
- Name: "env",
- ShortName: "e",
- Usage: "env command",
- HideHelp: true,
- SkipFlagParsing: true,
- Action: envAction,
- },
- {
- Name: "service",
- ShortName: "s",
- Usage: "service settings",
- HideHelp: true,
- Subcommands: serviceSubCommands(),
- },
- //{
- // Name: "reload",
- // ShortName: "a",
- // Usage: "reload configuration of a service and restart the container",
- // Action: reload,
- //},
- {
- Name: "os",
- Usage: "operating system upgrade/downgrade",
- HideHelp: true,
- Subcommands: osSubcommands(),
- },
- {
- Name: "tls",
- Usage: "setup tls configuration",
- HideHelp: true,
- Subcommands: tlsConfCommands(),
- },
- }
- app.Run(os.Args)
- }
|