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:
decentral1se 2021-08-02 00:19:15 +02:00
parent 1846f965ec
commit 8a5ee68b7b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 0 additions and 15 deletions

View File

@ -13,7 +13,6 @@
- [ ] `hetzner`
- [x] `rm`
- [ ] `init`
- [ ] `apps`
- [ ] `abra app`
- [x] `ls`
- [x] `new`

View File

@ -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 },
}