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

More powerful version cmd #1916

Merged
merged 13 commits into from
Jul 28, 2023
Merged

More powerful version cmd #1916

merged 13 commits into from
Jul 28, 2023

Conversation

Noxsios
Copy link
Contributor

@Noxsios Noxsios commented Jul 22, 2023

Description

Tests to come.

Adds --build and --dependencies to the zarf version cmd. The output format is YAML, and is fully ready to be piped to yq similar to other tools.

ie:

$ zarf version --output yaml | yq '.build.platform | split("/").[1]'
amd64

ex:

$ zarf version --output yaml
build:
  goVersion: go1.20.3
  major: 0
  minor: 28
  patch: 3
  platform: linux/amd64
  prerelease: 1-g02150cfd
dependencies:
  atomicgo.dev/cursor: v0.1.1
  atomicgo.dev/keyboard: v0.2.9
  atomicgo.dev/schedule: v0.0.2
  cloud.google.com/go/compute/metadata: v0.2.3
  cloud.google.com/go/iam: v0.13.0
  cloud.google.com/go/kms: v1.10.1
  cuelang.org/go: v0.5.0
  github.com/AlecAivazis/survey/v2: v2.3.7
  github.com/AliyunContainerService/ack-ram-tool/pkg/credentials/alibabacloudsdkgo/helper: v0.2.0
  github.com/Azure/azure-sdk-for-go: v66.0.0+incompatible
...
  oras.land/oras-go: v1.2.2 -> github.com/defenseunicorns/oras-go v1.2.4-0.20230605015028-85c595ed4b64
...

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

Signed-off-by: razzle <harry@razzle.cloud>
@Noxsios Noxsios added the needs-tests PR Label - Tests required to merge label Jul 22, 2023
@netlify
Copy link

netlify bot commented Jul 22, 2023

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 78b257d
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/64c338539515d3000853b7ab

Noxsios added 2 commits July 22, 2023 02:28
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
src/cmd/version.go Outdated Show resolved Hide resolved
Signed-off-by: razzle <harry@razzle.cloud>
@Noxsios Noxsios requested a review from Madeline-UX as a code owner July 27, 2023 21:13
@Noxsios Noxsios removed the needs-tests PR Label - Tests required to merge label Jul 27, 2023
Noxsios added 5 commits July 27, 2023 16:31
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
src/cmd/version.go Show resolved Hide resolved
Noxsios added 2 commits July 27, 2023 17:46
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Copy link
Contributor

@Racer159 Racer159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Racer159 Racer159 enabled auto-merge (squash) July 27, 2023 22:51
.github/actions/save-logs/action.yaml Outdated Show resolved Hide resolved
Co-authored-by: Wayne Starr <Racer159@users.noreply.github.com>
Copy link
Contributor

@Racer159 Racer159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@Racer159 Racer159 merged commit 5adf530 into main Jul 28, 2023
@Racer159 Racer159 deleted the more-powerful-version-cmd branch July 28, 2023 14:01
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.

2 participants