vault/command
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
..
server go vet fixes 2018-02-05 14:26:31 -05:00
test-fixtures Remove config from Meta; it's only used right now with the token helper. 2016-04-01 16:02:18 -04:00
token Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
approle_concurrency_integ_test.go Fix race in approle integ test 2018-02-09 17:01:10 -05:00
audit.go Make audit a subcommand 2017-10-24 09:30:47 -04:00
audit_disable.go Make audit a subcommand 2017-10-24 09:30:47 -04:00
audit_disable_test.go Make audit a subcommand 2017-10-24 09:30:47 -04:00
audit_enable.go Make audit a subcommand 2017-10-24 09:30:47 -04:00
audit_enable_test.go Adding tests to ensure all backends are mountable (#3861) 2018-02-01 11:30:04 -05:00
audit_list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
audit_list_test.go Update audit-list command 2017-10-24 09:28:06 -04:00
auth.go Change next major release of Vault to 0.11 or later to make it less scary 2018-01-17 19:31:52 -05:00
auth_disable.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_disable_test.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_enable.go Merge branch 'master-oss' into sethvargo/cli-magic 2018-01-03 14:02:31 -05:00
auth_enable_test.go Adding tests to ensure all backends are mountable (#3861) 2018-02-01 11:30:04 -05:00
auth_help.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_help_test.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
auth_list_test.go Add new auth-list command 2017-10-24 09:28:06 -04:00
auth_test.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_tune.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_tune_test.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
base.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
base_flags.go Add a custom flag for specifying "system" ttls 2017-10-24 09:30:48 -04:00
base_helpers.go Move more formatting into base_helpers 2017-10-24 09:30:48 -04:00
base_helpers_test.go Expand and centralize helpers 2017-10-24 09:28:05 -04:00
base_predict.go Predict "generic" as a secrets engine 2017-10-24 09:30:47 -04:00
base_predict_test.go Fix outdated test 2018-01-10 11:33:53 -05:00
command_test.go Adding tests to ensure all backends are mountable (#3861) 2018-02-01 11:30:04 -05:00
commands.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
config.go Improve error handling re: homedir expansion 2016-04-25 18:01:13 -07:00
config_test.go Remove config from Meta; it's only used right now with the token helper. 2016-04-01 16:02:18 -04:00
delete.go Update delete command 2017-10-24 09:30:47 -04:00
delete_test.go Update delete command 2017-10-24 09:30:47 -04:00
format.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
format_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
identity_group_aliases_integ_test.go go vet fixes 2018-02-05 14:26:31 -05:00
lease.go Add lease subcommand 2017-10-24 09:30:47 -04:00
lease_renew.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
lease_renew_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
lease_revoke.go Add lease subcommand 2017-10-24 09:30:47 -04:00
lease_revoke_test.go Add lease subcommand 2017-10-24 09:30:47 -04:00
list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
list_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
login.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
login_test.go Don't swallow errors on token functions. 2017-10-24 09:39:35 -04:00
main.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_generate_root.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_generate_root_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_init.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_init_test.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_key_status.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_key_status_test.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_rekey.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_rekey_test.go Exclude rekey command tests from race detector 2018-02-08 13:34:45 -05:00
operator_seal.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_seal_test.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_step_down.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_step_down_test.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_unseal.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_unseal_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
path_help.go Update path-help command 2017-10-24 09:30:48 -04:00
path_help_test.go Fix bad rebase 2017-10-24 09:39:34 -04:00
path_map_upgrade_api_test.go SHA2-256 salting for AppID (#3806) 2018-01-17 19:48:32 -05:00
pgp_test.go Add helper for decrypting via PGP in tests 2017-10-24 09:28:06 -04:00
policies_deprecated.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
policies_deprecated_test.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_delete.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_delete_test.go Update policy-delete command 2017-10-24 09:29:36 -04:00
policy_fmt.go Use renamed method 2017-10-24 09:39:51 -04:00
policy_fmt_test.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
policy_list_test.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_read.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
policy_read_test.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_write.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_write_test.go Update policy-write command 2017-10-24 09:29:37 -04:00
read.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
read_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
rotate.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
rotate_test.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
secrets.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_disable.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_disable_test.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_enable.go Merge branch 'master-oss' into sethvargo/cli-magic 2018-01-03 14:02:31 -05:00
secrets_enable_test.go Adding tests to ensure all backends are mountable (#3861) 2018-02-01 11:30:04 -05:00
secrets_list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
secrets_list_test.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_move.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_move_test.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_tune.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_tune_test.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
server.go Remove context from a few extraneous places 2018-01-19 03:44:06 -05:00
server_test.go Fix bad rebase 2017-10-24 09:39:34 -04:00
ssh.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
ssh_test.go Update ssh command 2017-10-24 09:30:46 -04:00
status.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
status_test.go Fix bad rebase 2017-10-24 09:39:34 -04:00
token.go Add token as a subcommand 2017-10-24 09:30:47 -04:00
token_capabilities.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_capabilities_test.go Add token as a subcommand 2017-10-24 09:30:47 -04:00
token_create.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_create_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_lookup.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_lookup_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_renew.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_renew_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_revoke.go Add token as a subcommand 2017-10-24 09:30:47 -04:00
token_revoke_test.go Update token-revoke command 2017-10-24 09:30:46 -04:00
unwrap.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
unwrap_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
util.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
version.go Update version command 2017-10-24 09:30:48 -04:00
version_test.go Update version command 2017-10-24 09:30:47 -04:00
write.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
write_test.go Update write command 2017-10-24 09:30:48 -04:00