Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porter explain command displays custom section data when output is JSON or YAML #2767

Merged
merged 11 commits into from
May 31, 2023

Conversation

tompaana
Copy link
Contributor

What does this change

Adds the user-defined custom section data to the output of porter explain command when the output format is JSON or YAML:

  • Implements the feature
  • Updates unit tests
  • Updates documentation

What issue does it fix

Closes #2764

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Reviewer Checklist

  • Comment with /azp run test-porter-release if a magefile or build script was modified
  • Comment with /azp run porter-integration if it's a non-trivial PR

Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
@tompaana tompaana force-pushed the explain-displays-custom-section branch from 68bb253 to 6f11c15 Compare May 23, 2023 10:31
pkg/porter/explain.go Outdated Show resolved Hide resolved
pkg/porter/explain.go Outdated Show resolved Hide resolved
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
Signed-off-by: Tomi Paananen <tomi.paananen@microsoft.com>
@schristoff
Copy link
Member

/azp run porter-integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@schristoff schristoff merged commit 9dfd04f into getporter:main May 31, 2023
@tompaana tompaana deleted the explain-displays-custom-section branch June 1, 2023 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Porter explain to display custom section when output is JSON
4 participants