From 429c7e4e50b8fd684a86551c31f717a4885251a8 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 26 Jul 2021 23:58:34 +0200 Subject: [PATCH] docs: take a pass on CLI usage docs and add ASCII --- cli/app.go | 4 ++-- cli/cli.go | 12 ++++++++++-- cli/recipe.go | 4 ++-- cli/server.go | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/cli/app.go b/cli/app.go index fea1c7c9..c1c9fc7b 100644 --- a/cli/app.go +++ b/cli/app.go @@ -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, diff --git a/cli/cli.go b/cli/cli.go index d0a9b934..c1612e29 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -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, diff --git a/cli/recipe.go b/cli/recipe.go index f97ff3fa..edfbd3da 100644 --- a/cli/recipe.go +++ b/cli/recipe.go @@ -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, diff --git a/cli/server.go b/cli/server.go index b7ac90e1..918f78c1 100644 --- a/cli/server.go +++ b/cli/server.go @@ -125,7 +125,7 @@ var serverAppsCommand = &cli.Command{ var ServerCommand = &cli.Command{ Name: "server", ArgsUsage: "", - Usage: "Interact with the servers hosting your apps", + Usage: "Manage the servers that host your apps", HideHelp: true, Subcommands: []*cli.Command{ serverNewCommand,