Skip to content

Commit 6db81e1

Browse files
committed
fix: fix api-key being passed into command
1 parent 323e55a commit 6db81e1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/requestflag/requestflag.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type Flag[
2828
Sources cli.ValueSourceChain // sources to load flag value from
2929
Required bool // whether the flag is required or not
3030
Hidden bool // whether to hide the flag in help output
31+
Local bool // whether or not this flag should be applied to subcommands
3132
Default T // default value for this flag if not set by from any source
3233
Aliases []string // aliases that are allowed for this flag
3334
Validator func(T) error // custom function to validate this flag value
@@ -55,6 +56,10 @@ type InRequest interface {
5556
IsBodyRoot() bool
5657
}
5758

59+
func (f Flag[T]) IsLocal() bool {
60+
return f.Local
61+
}
62+
5863
func (f Flag[T]) GetQueryPath() string {
5964
return f.QueryPath
6065
}

0 commit comments

Comments
 (0)