Merge pull request #161 from foomo/fix/pulumi-azure-args

fix(pulumi/pulumi): az args
This commit is contained in:
Kevin Franklin Kim 2024-12-03 15:06:36 +01:00 committed by GitHub
commit 3e4b5b5027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,9 +96,9 @@ func NewCommand(l log.Logger, az *az.AZ, op *onepassword.OnePassword, cache cach
Name: "create",
Description: "Create a new object storage backend",
Flags: func(ctx context.Context, r *readline.Readline, fs *readline.FlagSets) error {
fs.Default().String("debug", "", "Show full logs")
fs.Default().String("tags", "", "Quoted string with space-separated tags")
fs.Default().String("vebose", "", "Increase logging verbosity")
fs.Default().Bool("debug", false, "Show full logs")
fs.Default().Bool("vebose", false, "Increase logging verbosity")
fs.Internal().String("group-args", "", "Additional group create args")
fs.Internal().String("storage-args", "", "Additional storaage create args")
return nil
@ -129,7 +129,7 @@ func NewCommand(l log.Logger, az *az.AZ, op *onepassword.OnePassword, cache cach
Args("--subscription", be.Subscription).
Args("--location", be.Location).
Args(strings.Split(groupArgs, " ")...).
Args(r.Flags()...).
Args(r.FlagSets().Default().Visited().Args()...).
Run(); err != nil {
return err
}
@ -142,7 +142,7 @@ func NewCommand(l log.Logger, az *az.AZ, op *onepassword.OnePassword, cache cach
Args("--subscription", be.Subscription).
Args("--location", be.Location).
Args(strings.Split(storageArgs, " ")...).
Args(r.Flags()...).
Args(r.FlagSets().Default().Visited().Args()...).
Run(); err != nil {
return err
}