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{ var AppCommand = &cli.Command{
Name: "app", Name: "app",
HideHelp: true, Usage: "Manage your apps",
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
appNewCommand, appNewCommand,
appConfigCommand, appConfigCommand,

View File

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

View File

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

View File

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