refactor: drop alias command
Save us some work and avoid confusion on two things doing the same thing under different top-level sub-commands (this was just an experiment after all).
This commit is contained in:
parent
1846f965ec
commit
8a5ee68b7b
1
TODO.md
1
TODO.md
@ -13,7 +13,6 @@
|
|||||||
- [ ] `hetzner`
|
- [ ] `hetzner`
|
||||||
- [x] `rm`
|
- [x] `rm`
|
||||||
- [ ] `init`
|
- [ ] `init`
|
||||||
- [ ] `apps`
|
|
||||||
- [ ] `abra app`
|
- [ ] `abra app`
|
||||||
- [x] `ls`
|
- [x] `ls`
|
||||||
- [x] `new`
|
- [x] `new`
|
||||||
|
@ -108,19 +108,6 @@ docker swarm init
|
|||||||
docker network create ...`,
|
docker network create ...`,
|
||||||
}
|
}
|
||||||
|
|
||||||
var serverAppsCommand = &cli.Command{
|
|
||||||
Name: "apps",
|
|
||||||
Usage: `Alias for "abra app ls --server <host>"`,
|
|
||||||
HideHelp: true,
|
|
||||||
ArgsUsage: " ", // Removes "[arguments]" from help. Empty str's are ignored
|
|
||||||
Flags: []cli.Flag{
|
|
||||||
&cli.BoolFlag{
|
|
||||||
Name: "status",
|
|
||||||
Value: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reminder: The list commands are in is the order they appear in the help menu
|
// Reminder: The list commands are in is the order they appear in the help menu
|
||||||
var ServerCommand = &cli.Command{
|
var ServerCommand = &cli.Command{
|
||||||
Name: "server",
|
Name: "server",
|
||||||
@ -133,7 +120,6 @@ var ServerCommand = &cli.Command{
|
|||||||
serverAddCommand,
|
serverAddCommand,
|
||||||
serverListCommand,
|
serverListCommand,
|
||||||
serverRemoveCommand,
|
serverRemoveCommand,
|
||||||
serverAppsCommand,
|
|
||||||
},
|
},
|
||||||
Action: func(c *cli.Context) error { fmt.Println("server"); return nil },
|
Action: func(c *cli.Context) error { fmt.Println("server"); return nil },
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user