refactor: break up cli pkg into nice small chunks

This commit is contained in:
2021-08-02 02:10:41 +01:00
parent c2f53e493e
commit 30d11f48a7
29 changed files with 787 additions and 649 deletions

26
cli/server/server.go Normal file
View File

@ -0,0 +1,26 @@
package server
import (
"github.com/urfave/cli/v2"
)
// Reminder: The list commands are in is the order they appear in the help menu
var ServerCommand = &cli.Command{
Name: "server",
ArgsUsage: "<host>",
Usage: "Manage the servers that host your apps",
Description: `
Manage the lifecycle of a server.
These commands support creating new servers using 3rd party integrations,
initialising existing servers to support Co-op Cloud deployments and managing
the connections to those servers.
`,
Subcommands: []*cli.Command{
serverNewCommand,
serverInitCommand,
serverAddCommand,
serverListCommand,
serverRemoveCommand,
},
}