mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-23 14:10:50 -05:00
* docs: add an exit-code table and generated --help snapshots README gains the exit codes scripts can rely on, per command. docs/help holds the --help text of every command in every tree, and HelpSnapshotTest fails when the files and the commands drift apart. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * docs: say which rejected values exit 1 and pin the documented exit codes with a test The table promised 2 for every unusable value, but three commands report a rejected value with 1. The wording is narrowed, the three are named, and ExitCodeTableTest pins the rows that need neither Docker nor a server. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * test: keep the exit-code test off the developer's saved profiles The profile commands build their own store under the home directory, so the test now runs with a temporary home. Signed-off-by: Hector Ventura <hectorvent@gmail.com> --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>
30 lines
1.9 KiB
Plaintext
30 lines
1.9 KiB
Plaintext
Usage: floci az setup [-hqvV] [--global] [--json] [--no-color] [--no-emoji] [--reset]
|
|
[--client-id=<id>] [--client-secret=<secret>] [--container=<name>]
|
|
[--endpoint=<url>] [-o=text|json|yaml] [--profile=<name>]
|
|
[--subscription=<id>] [--tenant=<id>]
|
|
Point the az CLI at Floci Azure: trust its certificate, register the cloud and log in
|
|
--client-id=<id> Service principal client id (default:
|
|
00000000-0000-0000-0000-000000000003)
|
|
--client-secret=<secret>
|
|
Service principal secret; floci-az does not check it (default:
|
|
fake-secret)
|
|
--container=<name> Floci container name (default: floci-az)
|
|
--endpoint=<url> Floci server endpoint URL (default: http://localhost:4577)
|
|
--global Configure your default az config (~/.azure) instead of an isolated one
|
|
under ~/.floci/az
|
|
-h, --help Show this help message and exit.
|
|
--json Shorthand for --output json
|
|
--no-color Disable ANSI colors
|
|
--no-emoji Plain ASCII marks instead of Unicode ones (the default when output is
|
|
piped)
|
|
-o, --output=text|json|yaml
|
|
Output format: text, json, yaml
|
|
--profile=<name> Config profile from ~/.floci/profiles/
|
|
-q, --quiet Suppress non-error output
|
|
--reset Undo a previous setup: delete the isolated config, or with --global
|
|
switch az back to AzureCloud
|
|
--subscription=<id> Subscription to select (default: 00000000-0000-0000-0000-000000000001)
|
|
--tenant=<id> Tenant id to log in to (default: 00000000-0000-0000-0000-000000000002)
|
|
-v, --verbose Debug logging to stderr
|
|
-V, --version Print version information and exit.
|