docs: short aliases [ci skip]

This commit is contained in:
2021-09-05 01:34:56 +02:00
parent a3a66ef972
commit 317be4cc01
19 changed files with 53 additions and 20 deletions

View File

@ -10,8 +10,9 @@ import (
var serverAddCommand = &cli.Command{
Name: "add",
Usage: "Add a new server, reachable on <host>.",
ArgsUsage: "<host> [<user>] [<port>]",
Usage: "Add a new server, reachable on <server>.",
Aliases: []string{"a"},
ArgsUsage: "<server> [<user>] [<port>]",
Description: "[<user>], [<port>] SSH connection details",
Action: func(c *cli.Context) error {
argLen := c.Args().Len()

View File

@ -18,6 +18,7 @@ import (
var serverInitCommand = &cli.Command{
Name: "init",
Usage: "Initialise server for deploying apps",
Aliases: []string{"i"},
HideHelp: true,
ArgsUsage: "<server>",
Description: `

View File

@ -10,9 +10,13 @@ import (
)
var serverRemoveCommand = &cli.Command{
Name: "remove",
Aliases: []string{"rm", "delete"},
Usage: "Remove a locally-defined server",
Name: "remove",
Aliases: []string{"rm"},
Usage: "Remove a server",
Description: `
This does not destroy the actual server. It simply removes it from Abra
internal bookkeeping so that it is not managed any more.
`,
HideHelp: true,
Action: func(c *cli.Context) error {
server := c.Args().First()