Skip to content

Commit 71b9c76

Browse files
committed
fix: govc: wire up flags for namespace service create
Signed-off-by: Gabe Rosenhouse <[email protected]>
1 parent 3442a68 commit 71b9c76

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

govc/USAGE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4750,6 +4750,9 @@ Examples:
47504750
govc namespace.service.create manifest.yaml
47514751
47524752
Options:
4753+
-accept-eula=false Auto accept EULA
4754+
-spec-type=vsphere Type of Spec: only vsphere is supported right now
4755+
-trusted=false Define if this is a trusted provider
47534756
```
47544757

47554758
## namespace.service.deactivate

govc/namespace/service/create.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ func (cmd *create) Register(ctx context.Context, f *flag.FlagSet) {
4444
cmd.ClientFlag, ctx = flags.NewClientFlag(ctx)
4545
cmd.ClientFlag.Register(ctx, f)
4646

47-
flag.StringVar(&cmd.specType, "spec-type", "vsphere", "Type of Spec: only vsphere is supported right now")
48-
flag.BoolVar(&cmd.trustedProvider, "trusted", false, "Define if this is a trusted provider")
49-
flag.BoolVar(&cmd.acceptEULA, "accept-eula", false, "Auto accept EULA")
50-
47+
f.StringVar(&cmd.specType, "spec-type", "vsphere", "Type of Spec: only vsphere is supported right now")
48+
f.BoolVar(&cmd.trustedProvider, "trusted", false, "Define if this is a trusted provider")
49+
f.BoolVar(&cmd.acceptEULA, "accept-eula", false, "Auto accept EULA")
5150
}
5251

5352
func (cmd *create) Description() string {

0 commit comments

Comments
 (0)