From 8a5ee68b7bc1b67c1979117a7cc5995ecfe60410 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 2 Aug 2021 00:19:15 +0200 Subject: [PATCH] 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). --- TODO.md | 1 - cli/server.go | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/TODO.md b/TODO.md index 28c51e35..6d67d2ad 100644 --- a/TODO.md +++ b/TODO.md @@ -13,7 +13,6 @@ - [ ] `hetzner` - [x] `rm` - [ ] `init` - - [ ] `apps` - [ ] `abra app` - [x] `ls` - [x] `new` diff --git a/cli/server.go b/cli/server.go index 918f78c1..9027d9b4 100644 --- a/cli/server.go +++ b/cli/server.go @@ -108,19 +108,6 @@ docker swarm init docker network create ...`, } -var serverAppsCommand = &cli.Command{ - Name: "apps", - Usage: `Alias for "abra app ls --server "`, - 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 }, }