Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ itself uses:

## Building from source

This project uses [Go modules](https://go.dev/blog/using-go-modules) and requires Go 1.26+.
This project uses [Go modules](https://go.dev/blog/using-go-modules) and requires Go 1.26.5+.

```bash
go mod download
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module env-aws-params

go 1.26

toolchain go1.26.5
go 1.26.5

require (
github.com/aws/aws-sdk-go-v2 v1.41.7
Expand Down
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ func main() {
Flags: cliFlags(),
Action: action,
StopOnNthArg: &stopOnFirstArg,
// Flag parsing errors never reach action, so they are mapped to
// the documented usage-error exit code here.
OnUsageError: func(_ context.Context, _ *cli.Command, err error, _ bool) error {
return cli.Exit(errorPrefix(err), 125)
},
}
if err := cmd.Run(context.Background(), os.Args); err != nil {
log.Fatal(err)
Expand Down