Commit Graph

89 Commits

Author SHA1 Message Date
Calvin Leung Huang
3189278c84
CLI Enhancements (#3897)
* Use Colored UI if stdout is a tty

* Add format options to operator unseal

* Add format test on operator unseal

* Add -no-color output flag, and use BasicUi if no-color flag is provided

* Move seal status formatting logic to OutputSealStatus

* Apply no-color to warnings from DeprecatedCommands as well

* Add OutputWithFormat to support arbitrary data, add format option to auth list

* Add ability to output arbitrary list data on TableFormatter

* Clear up switch logic on format

* Add format option for list-related commands

* Add format option to rest of commands that returns a client API response

* Remove initOutputYAML and initOutputJSON, and use OutputWithFormat instead

* Remove outputAsYAML and outputAsJSON, and use OutputWithFormat instead

* Remove -no-color flag, use env var exclusively to toggle colored output

* Fix compile

* Remove -no-color flag in main.go

* Add missing FlagSetOutputFormat

* Fix generate-root/decode test

* Migrate init functions to main.go

* Add no-color flag back as hidden

* Handle non-supported data types for TableFormatter.OutputList

* Pull formatting much further up to remove the need to use c.flagFormat (#3950)

* Pull formatting much further up to remove the need to use c.flagFormat

Also remove OutputWithFormat as the logic can cause issues.

* Use const for env var

* Minor updates

* Remove unnecessary check

* Fix SSH output and some tests

* Fix tests

* Make race detector not run on generate root since it kills Travis these days

* Update docs

* Update docs

* Address review feedback

* Handle --format as well as -format
2018-02-12 18:12:16 -05:00
Chris Hoffman
d285fdf957
Fixing docs links and adding redirects for new guides (#3939)
* updating links

* updating links

* updating links

* updating links

* updating links

* adding redirects
2018-02-07 19:29:07 -05:00
Jack Pearkes
8ca8b46c51 website: add note about the 0.9.2+ CLI changes to reduce confusion (#3868)
* website: add note about the 0.9.2+ CLI changes to reduce confusion

* website: fix frontmatter for 0.9.3 guide, add to guides index

* website: add overview title to 0.9.3 guide for spacing
2018-01-30 13:30:47 -05:00
Jeff Mitchell
d6552a11cc Merge branch 'master-oss' into sethvargo/cli-magic 2018-01-03 14:02:31 -05:00
Calvin Leung Huang
56b5c8e8bd
Docs update related to new top-level config values (#3556)
* Add new top level config value docs, add VAULT_API_ADDR, purge old references

* Fix indentation

* Update wording on ha.html

* Add section on split data/HA mode

* Fix grammar
2017-11-10 20:06:07 -05:00
AJ Bourg
e26573cb78 Add a doc for the token helper (#3411)
* Add token helper docs.

* Update it so the new token helpers page appears in the navigation.
2017-10-27 09:42:33 -05:00
Seth Vargo
50caac0bb6
More naming cleanup 2017-10-24 09:35:03 -04:00
Seth Vargo
23d1d9a1ac
Resolve the most painful merge conflict known on earth 2017-10-24 09:34:12 -04:00
Seth Vargo
b8e4b0d515
Standardize on "auth method"
This removes all references I could find to:

- credential provider
- authentication backend
- authentication provider
- auth provider
- auth backend

in favor of the unified:

- auth method
2017-10-24 09:32:15 -04:00
Seth Vargo
9ae01f1e6a
Absorb help and read-write into index 2017-10-24 09:30:52 -04:00
Seth Vargo
aaeacc291a
Add "write" command documentation 2017-10-24 09:30:52 -04:00
Seth Vargo
878f80e47f
Add "unwrap" command documentation 2017-10-24 09:30:52 -04:00
Seth Vargo
a282ac98f2
Add "token" command documentation 2017-10-24 09:30:52 -04:00
Seth Vargo
0783fe73fd
Add "status" command documentation 2017-10-24 09:30:52 -04:00
Seth Vargo
a0d67d8540
Add "ssh" command documentation 2017-10-24 09:30:52 -04:00
Seth Vargo
914321259a
Add "server" command documentation 2017-10-24 09:30:52 -04:00
Seth Vargo
b046a6bcdd
Add "secrets" command documentation 2017-10-24 09:30:52 -04:00
Seth Vargo
8e0eeade04
Add "read" command documentation 2017-10-24 09:30:52 -04:00
Seth Vargo
66448e3f82
Add "policy" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
7a88b59414
Update "path-help" documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
f3fc20b64b
Add "operator" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
afd289f65a
Add "login" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
737540b9ba
Add "list" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
53f3db41b6
Add "lease" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
9d6cae1f5d
Add "delete" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
e776921f96
Add "auth" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
0844c285b2
Add "audit" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
0024eca6b1
Add "token revoke" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
46b3f74988
Add "token renew" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
15b6cbf9e5
Add "token lookup" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
b8987e00c7
Add "token create" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
36b6563867
Add "token capabilities" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
ee6849c01c
Add "secrets tune" command documentation 2017-10-24 09:30:51 -04:00
Seth Vargo
bfaabc5cae
Add "secrets move" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
4f5a073a62
Add "secrets list" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
7e9c0004b4
Add "secrets enable" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
872ccb49cf
Add "secrets disable" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
44ea6f47d0
Add "policy write" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
88524e1f00
Add "policy read" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
7d96e6cc4e
Add "policy list" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
0dc501cc9b
Add "policy fmt" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
2217c037d7
Add "policy delete" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
ca7a0a5d4d
Add "operator unseal" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
ccb3bec2a5
Add "operator step-down" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
eaf634ca34
Add "operator seal" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
cfc0940a23
Add "operator rotate" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
15a0f6c58a
Add "operator rekey" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
4e7d5bb841
Add "operator key-status" command documentation 2017-10-24 09:30:50 -04:00
Seth Vargo
06e5d1f1df
Add "operator init" command documentation 2017-10-24 09:30:49 -04:00
Seth Vargo
4f794cfdce
Add "operator generate-root" command documentation 2017-10-24 09:30:49 -04:00