Skip to content

Commit

Permalink
Merge pull request #441 from fujiwara/fix/color-negatable
Browse files Browse the repository at this point in the history
--no-color also works.
  • Loading branch information
fujiwara authored Oct 2, 2024
2 parents 94aabe2 + 35d2010 commit edb98e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Flags:
-h, --help Show context-sensitive help.
--function=STRING Function file path ($LAMBROLL_FUNCTION)
--log-level="info" log level (trace, debug, info, warn, error) ($LAMBROLL_LOGLEVEL)
--color enable colored output ($LAMBROLL_COLOR)
--[no-]color enable colored output ($LAMBROLL_COLOR)
--region=REGION AWS region ($AWS_REGION)
--profile=PROFILE AWS credential profile name ($AWS_PROFILE)
--tfstate=TFSTATE URL to terraform.tfstate ($LAMBROLL_TFSTATE)
Expand Down
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
type Option struct {
Function string `help:"Function file path" env:"LAMBROLL_FUNCTION"`
LogLevel string `help:"log level (trace, debug, info, warn, error)" default:"info" enum:"trace,debug,info,warn,error" env:"LAMBROLL_LOGLEVEL"`
Color bool `help:"enable colored output" default:"true" env:"LAMBROLL_COLOR"`
Color bool `help:"enable colored output" default:"true" env:"LAMBROLL_COLOR" negatable:""`

Region *string `help:"AWS region" env:"AWS_REGION"`
Profile *string `help:"AWS credential profile name" env:"AWS_PROFILE"`
Expand Down

0 comments on commit edb98e5

Please # to comment.