Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Include a flag for machine-readable output as a part of the management-cluster command #7

Open
2 of 9 tasks
zjs opened this issue Jul 2, 2021 · 1 comment
Open
2 of 9 tasks
Assignees
Labels
area/cli area/core-cli kind/feature Categorizes issue or PR as related to a new feature priority/important-longterm
Milestone

Comments

@zjs
Copy link
Member

zjs commented Jul 2, 2021

Describe the feature request

The TCE getting started guide has the user run tanzu management-cluster get to print a bunch of information about the management cluster, and then copy & paste the management cluster name.

It'd be nice if the management-cluster plugin provided a flag for JSON output (like other plugins do) so that the user could do something a like export MGMT_CLUSTER_NAME=$(tanzu management-cluster get -o jsonpath={…}).

Describe alternatives you've considered

None — and there may be better ways to solve this!

Affected product area (please put an X in all that apply)

  • APIs
  • Addons
  • CLI
  • Docs
  • Installation
  • Plugin
  • Security
  • Test and Release
  • User Experience

Additional context

@stmcginnis
Copy link
Contributor

This is partially addressed with using https://github.com/vmware-tanzu/tanzu-framework/blob/3ff281803db15a87a950be07b949351817bf26d7/pkg/v1/cli/component/output.go, but we need to restructure the current output. Right now it is a mix, so even when specifying a yaml or json format, there are parts of the output emitted that would need to be parsed out.

@iancoffey iancoffey added kind/feature Categorizes issue or PR as related to a new feature area/cli labels Jul 9, 2021
@saji-pivotal saji-pivotal added this to the v.Next milestone Oct 21, 2021
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
area/cli area/core-cli kind/feature Categorizes issue or PR as related to a new feature priority/important-longterm
Projects
None yet
Development

No branches or pull requests

5 participants