Skip to content

Commit

Permalink
Inform --format=tag-only
Browse files Browse the repository at this point in the history
  • Loading branch information
ebi-yade committed Oct 30, 2024
1 parent 73babed commit cb90964
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ If none of the specified tags exist, the command will fail with the following er

```shell
ecresolve foo bar --repository-name <your-repository-name>
# 2024/10/24 18:15:02 ERROR error Resolve: no matching images found
# stderr -> "2024/10/24 18:15:02 ERROR error Resolve: no matching images found"
```

Specifying `--format=tag-only` will be helpful if you just want to get the tag name:

```shell
ecresolve foo latest stable --repository-name <your-repository-name> --format=tag-only
# stdout -> "latest"
```

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion cmd/ecresolve/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type CLI struct {
ecresolve.Input

Version VersionFlag `short:"v" help:"Show version and exit"`
Format string `short:"f" help:"Output format" enum:"json,tag-only" default:"json"`
Format string `short:"f" help:"Output format [json, tag-only]" default:"json"`
}

func main() {
Expand Down

0 comments on commit cb90964

Please sign in to comment.