1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Add addon to rancherctl

This commit is contained in:
Darren Shepherd
2015-02-22 20:56:25 -07:00
parent 6800fdfb67
commit c0cee91cd1
3 changed files with 164 additions and 17 deletions

View File

@@ -15,6 +15,7 @@ func Main() {
app.Version = config.VERSION
app.Author = "Rancher Labs, Inc."
app.Email = "darren@rancher.com"
app.EnableBashCompletion = true
app.Commands = []cli.Command{
{
@@ -24,24 +25,17 @@ func Main() {
Subcommands: configSubcommands(),
},
{
Name: "module",
ShortName: "m",
Usage: "module settings",
Subcommands: []cli.Command{
{
Name: "activate",
Usage: "turn on a module and possibly reboot",
},
{
Name: "deactivate",
Usage: "turn off a module and possibly reboot",
},
{
Name: "list",
Usage: "list modules and state",
},
},
Name: "addon",
ShortName: "a",
Usage: "addon settings",
Subcommands: addonSubCommands(),
},
//{
// Name: "reload",
// ShortName: "a",
// Usage: "reload configuration of a service and restart the container",
// Action: reload,
//},
{
Name: "os",
Usage: "operating system upgrade/downgrade",