Skip to content

Commit

Permalink
Minor: command help output formatting (#200)
Browse files Browse the repository at this point in the history
Fix help output formatting for various commands.
  • Loading branch information
clockworksoul authored Jan 4, 2022
1 parent 7ad3417 commit 9044330
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 56 deletions.
16 changes: 8 additions & 8 deletions cli/bundle-uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ const (
bundleUninstallShort = "Uninstall bundles"
bundleUninstallLong = `Uninstall bundles.`
bundleUninstallUsage = `Usage:
gort bundle uninstall [flags] bundle_name [version]
gort bundle uninstall [flags] bundle_name [version]
Flags:
-a, --all Uninstall all versions of the bundle
-c, --clean Uninstall all disabled bundle versions
-h, --help help for uninstall
Flags:
-a, --all Uninstall all versions of the bundle
-c, --clean Uninstall all disabled bundle versions
-h, --help help for uninstall
Global Flags:
-P, --profile string The Gort profile within the config file to use
`
Global Flags:
-P, --profile string The Gort profile within the config file to use
`
)

var (
Expand Down
24 changes: 12 additions & 12 deletions cli/config-delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ const (
configDeleteUse = "delete"
configDeleteShort = "Delete a configuration value"
configDeleteLong = "Delete a configuration value."

configDeleteUsage = `Usage:
gort config delete [-b bundle] [-l layer] [-o owner] [-k key]
Flags:
-b, --bundle string The bundle to configure (required)
-h, --help Show this message and exit
-k, --key string The name of the configuration
-l, --layer string One of: [bundle room group user] (default "bundle")
-o, --owner string The owning room, group, or user
Global Flags:
-P, --profile string The Gort profile within the config file to use`
gort config delete [-b bundle] [-l layer] [-o owner] [-k key]
Flags:
-b, --bundle string The bundle to configure (required)
-h, --help Show this message and exit
-k, --key string The name of the configuration
-l, --layer string One of: [bundle room group user] (default "bundle")
-o, --owner string The owning room, group, or user
Global Flags:
-P, --profile string The Gort profile within the config file to use
`
)

var (
Expand Down
20 changes: 10 additions & 10 deletions cli/config-get.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ by the owning user, or by a Gort administrator.
Configurations set to "secret" cannot be retrieved.
`

configGetUsage = `Usage:
gort config get [-b bundle] [-l layer] [-o owner] [-k key] [flags]
gort config get [-b bundle] [-l layer] [-o owner] [-k key] [flags]
Flags:
-b, --bundle string The bundle to configure (required)
-h, --help Show this message and exit
-k, --key string The name of the configuration
-l, --layer string One of: [bundle room group user] (default "bundle")
-o, --owner string The owning room, group, or user
Flags:
-b, --bundle string The bundle to configure (required)
-h, --help Show this message and exit
-k, --key string The name of the configuration
-l, --layer string One of: [bundle room group user] (default "bundle")
-o, --owner string The owning room, group, or user
Global Flags:
-P, --profile string The Gort profile within the config file to use`
Global Flags:
-P, --profile string The Gort profile within the config file to use
`
)

var (
Expand Down
28 changes: 14 additions & 14 deletions cli/config-set.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ const (
configSetLong = `Set or update a dynamic configuration value, which can be injected into
commands' environments at execution time with the same name as the key.
Dynamic configuration keys may not start with "GORT_".`

Dynamic configuration keys may not start with "GORT_".
`
configSetUsage = `Usage:
gort config set [-b bundle] [-l layer] [-o owner] [-k key] [-s secret] [flags] config_value
Flags:
-b, --bundle string The bundle to configure (required)
-h, --help Show this message and exit
-k, --key string The name of the configuration
-l, --layer string One of: [bundle room group user] (default "bundle")
-o, --owner string The owning room, group, or user
-s, --secret Makes a configuration value secret
Global Flags:
-P, --profile string The Gort profile within the config file to use
gort config set [-b bundle] [-l layer] [-o owner] [-k key] [-s secret] [flags] config_value
Flags:
-b, --bundle string The bundle to configure (required)
-h, --help Show this message and exit
-k, --key string The name of the configuration
-l, --layer string One of: [bundle room group user] (default "bundle")
-o, --owner string The owning room, group, or user
-s, --secret Makes a configuration value secret
Global Flags:
-P, --profile string The Gort profile within the config file to use
`
)

Expand Down
8 changes: 4 additions & 4 deletions cli/hidden-whoami.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ const (
hiddenWhoamiShort = "Provides your basic identity and account information"
hiddenWhoamiLong = `Provides your basic identity and account information.`
hiddenWhoamiUsage = `Usage:
!gort:whoami
!gort:whoami
Flags:
-h, --help Show this message and exit
`
Flags:
-h, --help Show this message and exit
`
)

// GetHiddenWhoamiCmd is a command
Expand Down
16 changes: 8 additions & 8 deletions cli/user-map.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ accessible in Slack via View Full Profile -> More -> Copy Member ID. It looks
something like U01234567AB.
A Gort user can only be mapped to one ID per adapter, and each adapter:ID pair
can only be mapped to one Gort user.`

can only be mapped to one Gort user.
`
userMapUsage = `Usage:
gort user map [flags] username adapter_name [chat_user_id]
gort user map [flags] username adapter_name [chat_user_id]
Flags:
-D, --delete Delete a mapping instead of creating
-h, --help Show this message and exit
Flags:
-D, --delete Delete a mapping instead of creating
-h, --help Show this message and exit
Global Flags:
-P, --profile string The Gort profile within the config file to use
Global Flags:
-P, --profile string The Gort profile within the config file to use
`
)

Expand Down

0 comments on commit 9044330

Please sign in to comment.