Skip to content

Commit

Permalink
[coconut] Update inline documentation for coconut conf
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Jan 6, 2021
1 parent fa5c8b4 commit 7c9b784
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion coconut/cmd/configuration_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ var configurationDumpCmd = &cobra.Command{
Short: "dump configuration subtree",
Long: `The configuration dump command requests from O² Configuration
a subtree of key-values, and dumps it to standard output in the specified
format.`,
format. This command has full read access to the O² Configuration store
and performs a raw query with no additional processing or access control
semantics.`,
Run: configuration.WrapCall(configuration.Dump),
Args: cobra.ExactArgs(1),
}
Expand Down
2 changes: 1 addition & 1 deletion coconut/cmd/configuration_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var configurationHistoryCmd = &cobra.Command{
Aliases: []string{"h"},
Example: `coconut conf history <component>
coconut conf history <component> <entry>
coconut conf history <component>/<entry>`,
coconut conf history <component>/<run type>/<machine role>/<entry>`,
Short: "List all existing entries with timestamps of a specified component in Consul",
Long: `The configuration history command returns all entries with
all of their associated timestamps or returns all timestamps for a specified component and entry`,
Expand Down
4 changes: 2 additions & 2 deletions coconut/cmd/configuration_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ var configurationImportCmd = &cobra.Command{
Use: "import <component> <entry> <file_path>",
Aliases: []string{"i", "imp"},
Example: `coconut conf import <component> <entry> <file_path>
coconut conf import <component>/<entry> <file_path>
coconut conf import <component>/<run type>/<machine role>/<entry> <file_path>
coconut conf import <component> <entry> <file_path> --new-component
coconut conf import <component>/<entry> <file_path> --format=json
coconut conf import <component>/<run type>/<machine role>/<entry> <file_path> --format=json
coconut conf import <component> <entry> <file_path>.json
coconut conf import <component> <entry> <file_path> --no-versioning
coconut conf import <component> <entry> <file_path> --no-versioning --new-component
Expand Down
7 changes: 4 additions & 3 deletions coconut/cmd/configuration_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ var configurationShowCmd = &cobra.Command{
Aliases: []string{"s"},
Example: `coconut conf show <component> <entry>
coconut conf show <component> <entry> -t <timestamp>
coconut conf show <component>/<entry>
coconut conf show <component>/<entry> -t <timestamp>
coconut conf show <component>/<entry>@<timestamp>`,
coconut conf show <component>/<run type>/<machine role>/<entry>
coconut conf show <component>/<run type>/<machine role>/<entry> -t <timestamp>
coconut conf show <component>/<run type>/<machine role>/<entry>@<timestamp>
coconut conf show <component> <entry> -s -e '{"key1": "value1", "key2": "value2"}'`,
Short: "Show configuration for the component and entry specified",
Long: `The configuration show command returns the most recent
configuration revision for the specified component and entry.
Expand Down

0 comments on commit 7c9b784

Please sign in to comment.