Skip to content

Commit

Permalink
Merge pull request #2974 from buildkite/add-sha256sum-format-option
Browse files Browse the repository at this point in the history
Add sha256 checksum output to the formatting options
  • Loading branch information
patrobinson authored Sep 6, 2024
2 parents 2a26367 + 2606d0a commit dfc5a44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clicommand/artifact_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Format specifiers:
%S SHA1 checksum of the artifact
%T SHA256 checksum of the artifact
%u Download URL for the artifact, though consider using 'buildkite-agent artifact download' instead`

type ArtifactSearchConfig struct {
Expand Down Expand Up @@ -162,6 +164,7 @@ var ArtifactSearchCommand = cli.Command{
"%j", artifact.JobID,
"%s", strconv.FormatInt(artifact.FileSize, 10),
"%S", artifact.Sha1Sum,
"%T", artifact.Sha256Sum,
"%u", artifact.URL,
"%i", artifact.ID,
)
Expand Down

0 comments on commit dfc5a44

Please sign in to comment.