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`
|
||||
- [x] `rm`
|
||||
- [ ] `init`
|
||||
- [ ] `apps`
|
||||
- [ ] `abra app`
|
||||
- [x] `ls`
|
||||
- [x] `new`
|
||||
|
@ -108,19 +108,6 @@ docker swarm init
|
||||
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
|
||||
var ServerCommand = &cli.Command{
|
||||
Name: "server",
|
||||
@ -133,7 +120,6 @@ var ServerCommand = &cli.Command{
|
||||
serverAddCommand,
|
||||
serverListCommand,
|
||||
serverRemoveCommand,
|
||||
serverAppsCommand,
|
||||
},
|
||||
Action: func(c *cli.Context) error { fmt.Println("server"); return nil },
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user