docs: take a pass on CLI usage docs and add ASCII

This commit is contained in:
decentral1se 2021-07-26 23:58:34 +02:00
parent 3bc612c44e
commit 429c7e4e50
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
4 changed files with 15 additions and 7 deletions

View File

@ -189,8 +189,8 @@ var appSecretCommand = &cli.Command{
}
var AppCommand = &cli.Command{
Name: "app",
HideHelp: true,
Name: "app",
Usage: "Manage your apps",
Subcommands: []*cli.Command{
appNewCommand,
appConfigCommand,

View File

@ -10,8 +10,16 @@ import (
func RunApp(version, commit string) {
app := &cli.App{
Name: "abra",
Usage: "The Co-op Cloud utility belt 🎩🐇",
Name: "abra",
Usage: `The Co-op Cloud command-line utility belt 🎩🐇
____ ____ _ _
/ ___|___ ___ _ __ / ___| | ___ _ _ __| |
| | / _ \ _____ / _ \| '_ \ | | | |/ _ \| | | |/ _' |
| |__| (_) |_____| (_) | |_) | | |___| | (_) | |_| | (_| |
\____\___/ \___/| .__/ \____|_|\___/ \__,_|\__,_|
|_|
`,
Version: fmt.Sprintf("%s-%s", version, commit[:7]),
Commands: []*cli.Command{
AppCommand,

View File

@ -295,8 +295,8 @@ var recipeCreateCommand = &cli.Command{
}
var RecipeCommand = &cli.Command{
Name: "recipe",
HideHelp: true,
Name: "recipe",
Usage: "Manage app recipes",
Subcommands: []*cli.Command{
recipeListCommand,
recipeVersionCommand,

View File

@ -125,7 +125,7 @@ var serverAppsCommand = &cli.Command{
var ServerCommand = &cli.Command{
Name: "server",
ArgsUsage: "<host>",
Usage: "Interact with the servers hosting your apps",
Usage: "Manage the servers that host your apps",
HideHelp: true,
Subcommands: []*cli.Command{
serverNewCommand,