open-vault/api
Calvin Leung Huang 60732577f5
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
..
test-fixtures
api_integration_test.go Add API functions for token helpers 2017-10-24 09:26:44 -04:00
api_test.go Redo API locking (#3508) 2017-11-02 09:30:04 -05:00
auth.go
auth_token.go Use RenewTokenAsSelf instead 2017-07-07 17:14:44 -04:00
client.go Don't allow non-printable characters in the API client's token (#3841) 2018-01-24 19:57:49 -05:00
client_test.go Don't allow non-printable characters in the API client's token (#3841) 2018-01-24 19:57:49 -05:00
help.go
logical.go Better handle nil responses in logical unwrap 2016-12-01 16:38:08 -05:00
renewer.go Fix renewAuth to use the increment value (#3904) 2018-02-05 12:22:49 -05:00
renewer_integration_test.go Add API functions for token helpers 2017-10-24 09:26:44 -04:00
renewer_test.go Fix failing test 2017-07-07 17:14:49 -04:00
request.go More syncing 2017-10-23 16:52:56 -04:00
request_test.go
response.go api: Don't treat 429 as error (#2850) 2017-06-12 18:31:36 -04:00
secret.go Merge branch 'master-oss' into sethvargo/cli-magic 2018-01-03 14:02:31 -05:00
secret_test.go Cleanup of deprecated commands in tests, docs (#3788) 2018-01-15 15:19:28 -05:00
ssh.go Add SignKey endpoint for SSH API client 2017-08-18 12:59:08 -04:00
ssh_agent.go allow a TLS server name to be configured for SSH agents (#1720) 2016-08-23 22:06:56 -04:00
ssh_agent_test.go Fix breakage for HTTP2 support due to changes in wrapping introduced in 1.8 (#2412) 2017-02-27 12:49:35 -05:00
sys.go
sys_audit.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
sys_auth.go Port over some changes 2017-11-30 09:43:07 -05:00
sys_capabilities.go Restore compatibility with pre-0.6.1 servers for CLI/Go API calls 2016-08-14 14:52:45 -04:00
sys_config_cors.go Cors headers (#2021) 2017-06-17 00:04:55 -04:00
sys_generate_root.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
sys_health.go Sync some bits over 2018-01-22 21:44:49 -05:00
sys_init.go Add support for PGP encrypting the initial root token. (#1883) 2016-09-13 18:42:24 -04:00
sys_leader.go Add leader cluster address to status/leader output. (#3061) 2017-07-31 18:25:27 -04:00
sys_leases.go moving client calls to new endpoint (#2867) 2017-07-25 11:58:33 -04:00
sys_mounts.go Plumb more seal wrap stuff through and move to outside layer of mount options (#3572) 2017-11-13 11:22:22 -05:00
sys_policy.go More syncing 2017-10-23 16:52:56 -04:00
sys_rekey.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
sys_rotate.go Restore compatibility with pre-0.6.1 servers for CLI/Go API calls 2016-08-14 14:52:45 -04:00
sys_seal.go adding recovery info to seal status (#3706) 2017-12-18 09:58:14 -05:00
sys_stepdown.go