linkerd2/cli/cmd/testdata
Andrew Seigner 93322bed6d
Fix Unicode and color output for Windows (#2114)
The default font in Windows console did not support the Unicode
characters recently added to check and inject commands. Also the color
library the linkerd cli depends on was not being used in a
cross-platform way.

Replace the existing Unicode characters used in `check` and `inject`
with characters available in most fonts, including Windows console.
Similarly replace the spinner used in `check` with one that uses
characters available in most fonts.

Modify `check` and `inject` to use `color.Output` and `color.Error`,
which wrap `os.Stdout` and `os.Stderr`, and perform special
tranformations when on Windows.

Add a `--no-color` option to `linkerd logs`. While stern uses the same
color library that `check`/`inject` use, it is not yet using the
`color.Output` API for Windows support. That issue is tracked at:
https://github.com/wercker/stern/issues/69

Relates to https://github.com/linkerd/linkerd2/pull/2087

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
2019-01-23 09:55:44 -08:00
..
inject-filepath Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
check_output.golden Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_contour.input.yml Added `linkerd uninject` command (#2054) 2019-01-14 17:39:31 -05:00
inject_contour.report Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_contour.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_contour_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_emojivoto_already_injected.golden.yml When injecting, perform an uninject as a first step (#2089) 2019-01-17 10:15:23 -08:00
inject_emojivoto_already_injected.input.yml When injecting, perform an uninject as a first step (#2089) 2019-01-17 10:15:23 -08:00
inject_emojivoto_already_injected.report When injecting, perform an uninject as a first step (#2089) 2019-01-17 10:15:23 -08:00
inject_emojivoto_already_injected.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_deployment.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_emojivoto_deployment.input.yml Refactor `conduit inject` code to make it unit-testable. (#379) 2018-02-18 12:33:52 -10:00
inject_emojivoto_deployment.report Update check and inject output (#2087) 2019-01-16 15:14:14 -08:00
inject_emojivoto_deployment.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_deployment_controller_name.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_emojivoto_deployment_controller_name.input.yml Rename CLI from conduit to linkerd (#1312) 2018-07-12 17:14:07 -07:00
inject_emojivoto_deployment_controller_name.report Update check and inject output (#2087) 2019-01-16 15:14:14 -08:00
inject_emojivoto_deployment_controller_name.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_deployment_controller_name_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_emojivoto_deployment_hostNetwork_false.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_emojivoto_deployment_hostNetwork_false.input.yml Remove executable bit from non-executable files. (#1335) 2018-07-16 13:55:52 -10:00
inject_emojivoto_deployment_hostNetwork_false.report Update check and inject output (#2087) 2019-01-16 15:14:14 -08:00
inject_emojivoto_deployment_hostNetwork_false.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_deployment_hostNetwork_true.golden.yml Remove executable bit from non-executable files. (#1335) 2018-07-16 13:55:52 -10:00
inject_emojivoto_deployment_hostNetwork_true.input.yml Remove executable bit from non-executable files. (#1335) 2018-07-16 13:55:52 -10:00
inject_emojivoto_deployment_hostNetwork_true.report Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_deployment_hostNetwork_true.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_deployment_hostNetwork_true_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_emojivoto_deployment_tls.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_emojivoto_deployment_udp.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_emojivoto_deployment_udp.input.yml Inject warns on UDP ports (#1617) 2018-09-11 10:12:45 -07:00
inject_emojivoto_deployment_udp.report Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_deployment_udp.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_deployment_udp_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_emojivoto_deployment_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_emojivoto_istio.input.yml When injecting, perform an uninject as a first step (#2089) 2019-01-17 10:15:23 -08:00
inject_emojivoto_istio.report Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_istio.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_istio_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_emojivoto_list.golden.yml Fix reporting of injected resources (#2031) 2019-01-03 15:14:11 -05:00
inject_emojivoto_list.input.yml Added `linkerd uninject` command (#2054) 2019-01-14 17:39:31 -05:00
inject_emojivoto_list.report Update check and inject output (#2087) 2019-01-16 15:14:14 -08:00
inject_emojivoto_list.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_list_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_emojivoto_pod.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_emojivoto_pod.input.yml Added `linkerd uninject` command (#2054) 2019-01-14 17:39:31 -05:00
inject_emojivoto_pod.report Update check and inject output (#2087) 2019-01-16 15:14:14 -08:00
inject_emojivoto_pod.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_pod_tls.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_emojivoto_pod_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_emojivoto_pod_with_requests.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_emojivoto_pod_with_requests.input.yml Added `linkerd uninject` command (#2054) 2019-01-14 17:39:31 -05:00
inject_emojivoto_pod_with_requests.report Update check and inject output (#2087) 2019-01-16 15:14:14 -08:00
inject_emojivoto_pod_with_requests.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_pod_with_requests_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_emojivoto_statefulset.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_emojivoto_statefulset.input.yml Added `linkerd uninject` command (#2054) 2019-01-14 17:39:31 -05:00
inject_emojivoto_statefulset.report Update check and inject output (#2087) 2019-01-16 15:14:14 -08:00
inject_emojivoto_statefulset.report.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_emojivoto_statefulset_uninject.report Add newline separator above uninject reports (#2104) 2019-01-17 11:12:54 -08:00
inject_gettest_deployment.bad.golden Added `linkerd uninject` command (#2054) 2019-01-14 17:39:31 -05:00
inject_gettest_deployment.bad.golden.verbose Update check and inject output (#2087) 2019-01-16 15:14:14 -08:00
inject_gettest_deployment.bad.input.yml Print error message only when invalid YAML file is used with inject command (#389) 2018-02-20 11:59:41 -08:00
inject_gettest_deployment.good.golden.stderr Update check and inject output (#2087) 2019-01-16 15:14:14 -08:00
inject_gettest_deployment.good.golden.stderr.verbose Fix Unicode and color output for Windows (#2114) 2019-01-23 09:55:44 -08:00
inject_gettest_deployment.good.golden.yml Remove runAsGroup field from security context settings (#1986) 2018-12-13 15:12:13 -08:00
inject_gettest_deployment.good.input.yml Print error message only when invalid YAML file is used with inject command (#389) 2018-02-20 11:59:41 -08:00
install_default.golden Setup port-forwarding for linkerd dashboard command (#2052) 2019-01-10 10:16:08 -08:00
install_ha_output.golden Setup port-forwarding for linkerd dashboard command (#2052) 2019-01-10 10:16:08 -08:00
install_ha_with_overrides_output.golden Setup port-forwarding for linkerd dashboard command (#2052) 2019-01-10 10:16:08 -08:00
install_output.golden Follow up to #2054: move magic strings into constants (#2122) 2019-01-22 14:53:24 -05:00
install_single_namespace_output.golden Setup port-forwarding for linkerd dashboard command (#2052) 2019-01-10 10:16:08 -08:00
routes_one_output.golden Improve routes command to list all routes (#2066) 2019-01-16 17:15:35 -08:00
routes_one_output_json.golden Improve routes command to list all routes (#2066) 2019-01-16 17:15:35 -08:00
stat_all_output.golden Added support for json output in `linkerd stat` (#1749) 2018-10-15 14:10:48 -07:00
stat_all_output_json.golden Allow stat summary to query for multiple resources (#1841) 2018-11-14 10:44:04 -08:00
stat_one_output.golden Added support for json output in `linkerd stat` (#1749) 2018-10-15 14:10:48 -07:00
stat_one_output_json.golden Allow stat summary to query for multiple resources (#1841) 2018-11-14 10:44:04 -08:00
tap_busy_output.golden Add resource metadata to Tap CLI output (#1437) 2018-08-20 14:25:26 -07:00
tap_busy_output_wide.golden Add resource metadata to Tap CLI output (#1437) 2018-08-20 14:25:26 -07:00
tap_empty_output.golden Make several CLI commands testable (#86) 2017-12-27 14:10:41 -05:00