add tags and boost for pages

This commit is contained in:
Hayden
2022-08-14 16:11:56 -08:00
parent 286d5ada85
commit dac1c40ee5
27 changed files with 162 additions and 3 deletions

View File

@@ -1,4 +1,7 @@
### Arguments
---
tags:
- v1
---
You can lookup arguments by calling the `Args` function on `cli.Context`, e.g.:

View File

@@ -1,3 +1,8 @@
---
tags:
- v1
---
You can enable completion commands by setting the `EnableBashCompletion`
flag on the `App` object. By default, this setting will only auto-complete to
show an app's subcommands, but you can write your own completion methods for

View File

@@ -1,3 +1,8 @@
---
tags:
- v1
---
Traditional use of options using their shortnames look like this:
```

View File

@@ -1,3 +1,8 @@
---
tags:
- v1
---
Calling `App.Run` will not automatically call `os.Exit`, which means that by
default the exit code will "fall through" to being `0`. An explicit exit code
may be set by returning a non-nil error that fulfills `cli.ExitCoder`, *or* a

View File

@@ -1,3 +1,8 @@
---
tags:
- v1
---
Setting and querying flags is simple.
<!-- {

View File

@@ -1,3 +1,8 @@
---
tags:
- v1
---
The default help flag (`-h/--help`) is defined as `cli.HelpFlag` and is checked
by the cli internals in order to print generated help text for the app, command,
or subcommand, and break execution.

View File

@@ -1,3 +1,8 @@
---
tags:
- v1
---
Being a programmer can be a lonely job. Thankfully by the power of automation
that is not the case! Let's create a greeter app to fend off our demons of
loneliness!

View File

@@ -1,3 +1,8 @@
---
tags:
- v1
---
For additional organization in apps that have many subcommands, you can
associate a category for each command to group them together in the help
output.

View File

@@ -1,3 +1,8 @@
---
tags:
- v1
---
Subcommands can be defined for a more git-like command line app.
<!-- {

View File

@@ -1,4 +1,7 @@
### Version Flag
---
tags:
- v1
---
The default version flag (`-v/--version`) is defined as `cli.VersionFlag`, which
is checked by the cli internals in order to print the `App.Version` via