Skip to content

Commit cd53985

Browse files
authored
Update nexus commands.yml for docs gen (#693)
## What was changed - Updated `commands.yml` to address feedback on temporalio/documentation#3149 (comment) - Intended for use with the following, but also is fine to merge standalone - #691 - #692 See this branch for [the combined approach](https://github.com/prasek/temporal-cli/tree/cli-docs-gen-all) with all PRs merged in. ## Why? To create CLI docs for Nexus. ## Checklist 1. How was this tested: - `go run ./temporalcli/internal/cmd/gen-docs ` - also tested with [the combined appraoch](https://github.com/prasek/temporal-cli/tree/cli-docs-gen-all) - copied generated docs (or subset) to temporalio/documentation - `yarn start` - verified via http://localhost:3000/ Ran `go test ./...` Tested locally with: ``` go run ./cmd/temporal operator nexus endpoint create --name myendpoint --target-namespace my-target-namespace --target-task-queue my-handler-task-queue --description '## Sales Services Workflow'\''s to support Customer-to-Order generation. ## other stuff ' ``` 2. Any docs updates needed? - overall docs gen needs more alignment with the existing docs, but that is out of scope for these Nexus changes - will update temporalio/documentation#3149 with cherry picked generated content from [the combined approach](https://github.com/prasek/temporal-cli/tree/cli-docs-gen-all). --------- Signed-off-by: Phil Prasek <prasek@gmail.com> Signed-off-by: Josh Berry <josh.berry@temporal.io>
1 parent aba653d commit cd53985

2 files changed

Lines changed: 139 additions & 136 deletions

File tree

temporalcli/commands.gen.go

Lines changed: 58 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,31 @@ func (v *UpdateTargetingOptions) buildFlags(cctx *CommandContext, f *pflag.FlagS
241241
f.StringVarP(&v.RunId, "run-id", "r", "", "Run ID. If unset, updates the currently-running Workflow Execution.")
242242
}
243243

244+
type NexusEndpointIdentityOptions struct {
245+
Name string
246+
}
247+
248+
func (v *NexusEndpointIdentityOptions) buildFlags(cctx *CommandContext, f *pflag.FlagSet) {
249+
f.StringVar(&v.Name, "name", "", "Endpoint name. Required.")
250+
_ = cobra.MarkFlagRequired(f, "name")
251+
}
252+
253+
type NexusEndpointConfigOptions struct {
254+
Description string
255+
DescriptionFile string
256+
TargetNamespace string
257+
TargetTaskQueue string
258+
TargetUrl string
259+
}
260+
261+
func (v *NexusEndpointConfigOptions) buildFlags(cctx *CommandContext, f *pflag.FlagSet) {
262+
f.StringVar(&v.Description, "description", "", "Nexus Endpoint description. You may use Markdown formatting in the Nexus Endpoint description.")
263+
f.StringVar(&v.DescriptionFile, "description-file", "", "Path to the Nexus Endpoint description file. The contents of the description file may use Markdown formatting.")
264+
f.StringVar(&v.TargetNamespace, "target-namespace", "", "Namespace where a handler Worker polls for Nexus tasks.")
265+
f.StringVar(&v.TargetTaskQueue, "target-task-queue", "", "Task Queue that a handler Worker polls for Nexus tasks.")
266+
f.StringVar(&v.TargetUrl, "target-url", "", "An external Nexus Endpoint that receives forwarded Nexus requests. May be used as an alternative to `--target-namespace` and `--target-task-queue`.")
267+
}
268+
244269
type TemporalCommand struct {
245270
Command cobra.Command
246271
Env string
@@ -274,7 +299,7 @@ func NewTemporalCommand(cctx *CommandContext) *TemporalCommand {
274299
s.Command.AddCommand(&NewTemporalWorkflowCommand(cctx, &s).Command)
275300
s.Command.PersistentFlags().StringVar(&s.Env, "env", "default", "Active environment name (`ENV`).")
276301
cctx.BindFlagEnvVar(s.Command.PersistentFlags().Lookup("env"), "TEMPORAL_ENV")
277-
s.Command.PersistentFlags().StringVar(&s.EnvFile, "env-file", "", "Path to environment settings file. (defaults to `$HOME/.config/temporalio/temporal.yaml`).")
302+
s.Command.PersistentFlags().StringVar(&s.EnvFile, "env-file", "", "Path to environment settings file. Defaults to `$HOME/.config/temporalio/temporal.yaml`.")
278303
s.LogLevel = NewStringEnum([]string{"debug", "info", "warn", "error", "never"}, "info")
279304
s.Command.PersistentFlags().Var(&s.LogLevel, "log-level", "Log level. Default is \"info\" for most commands and \"warn\" for `server start-dev`. Accepted values: debug, info, warn, error, never.")
280305
s.Command.PersistentFlags().StringVar(&s.LogFormat, "log-format", "text", "Log format. Options are: text, json.")
@@ -284,7 +309,7 @@ func NewTemporalCommand(cctx *CommandContext) *TemporalCommand {
284309
s.Command.PersistentFlags().Var(&s.TimeFormat, "time-format", "Time format. Accepted values: relative, iso, raw.")
285310
s.Color = NewStringEnum([]string{"always", "never", "auto"}, "auto")
286311
s.Command.PersistentFlags().Var(&s.Color, "color", "Output coloring. Accepted values: always, never, auto.")
287-
s.Command.PersistentFlags().BoolVar(&s.NoJsonShorthandPayloads, "no-json-shorthand-payloads", false, "Raw payload output, even if they are JSON.")
312+
s.Command.PersistentFlags().BoolVar(&s.NoJsonShorthandPayloads, "no-json-shorthand-payloads", false, "Raw payload output, even if the JSON option was used.")
288313
s.CommandTimeout = 0
289314
s.Command.PersistentFlags().Var(&s.CommandTimeout, "command-timeout", "Timeout for the span of a command.")
290315
s.initCommand(cctx)
@@ -1052,9 +1077,9 @@ func NewTemporalOperatorNexusCommand(cctx *CommandContext, parent *TemporalOpera
10521077
s.Command.Use = "nexus"
10531078
s.Command.Short = "Commands for managing Nexus resources (EXPERIMENTAL)"
10541079
if hasHighlighting {
1055-
s.Command.Long = "Nexus commands enable managing Nexus resources.\n\nNexus commands follow this syntax:\n\n\x1b[1mtemporal operator nexus [command] [command] [command options]\x1b[0m"
1080+
s.Command.Long = "These commands manage Nexus resources.\n\nNexus commands follow this syntax:\n\n\x1b[1mtemporal operator nexus [command] [subcommand] [options]\x1b[0m"
10561081
} else {
1057-
s.Command.Long = "Nexus commands enable managing Nexus resources.\n\nNexus commands follow this syntax:\n\n```\ntemporal operator nexus [command] [command] [command options]\n```"
1082+
s.Command.Long = "These commands manage Nexus resources.\n\nNexus commands follow this syntax:\n\n```\ntemporal operator nexus [command] [subcommand] [options]\n```"
10581083
}
10591084
s.Command.Args = cobra.NoArgs
10601085
s.Command.AddCommand(&NewTemporalOperatorNexusEndpointCommand(cctx, &s).Command)
@@ -1072,9 +1097,9 @@ func NewTemporalOperatorNexusEndpointCommand(cctx *CommandContext, parent *Tempo
10721097
s.Command.Use = "endpoint"
10731098
s.Command.Short = "Commands for managing Nexus Endpoints (EXPERIMENTAL)"
10741099
if hasHighlighting {
1075-
s.Command.Long = "Endpoint commands enable managing Nexus Endpoints.\n\nEndpoint commands follow this syntax:\n\n\x1b[1mtemporal operator nexus endpoint [command] [command options]\x1b[0m"
1100+
s.Command.Long = "These commands manage Nexus Endpoints.\n\nNexus Endpoint commands follow this syntax:\n\n\x1b[1mtemporal operator nexus endpoint [command] [options]\x1b[0m"
10761101
} else {
1077-
s.Command.Long = "Endpoint commands enable managing Nexus Endpoints.\n\nEndpoint commands follow this syntax:\n\n```\ntemporal operator nexus endpoint [command] [command options]\n```"
1102+
s.Command.Long = "These commands manage Nexus Endpoints.\n\nNexus Endpoint commands follow this syntax:\n\n```\ntemporal operator nexus endpoint [command] [options]\n```"
10781103
}
10791104
s.Command.Args = cobra.NoArgs
10801105
s.Command.AddCommand(&NewTemporalOperatorNexusEndpointCreateCommand(cctx, &s).Command)
@@ -1086,35 +1111,26 @@ func NewTemporalOperatorNexusEndpointCommand(cctx *CommandContext, parent *Tempo
10861111
}
10871112

10881113
type TemporalOperatorNexusEndpointCreateCommand struct {
1089-
Parent *TemporalOperatorNexusEndpointCommand
1090-
Command cobra.Command
1091-
Name string
1092-
Description string
1093-
DescriptionFile string
1094-
TargetNamespace string
1095-
TargetTaskQueue string
1096-
TargetUrl string
1114+
Parent *TemporalOperatorNexusEndpointCommand
1115+
Command cobra.Command
1116+
NexusEndpointIdentityOptions
1117+
NexusEndpointConfigOptions
10971118
}
10981119

10991120
func NewTemporalOperatorNexusEndpointCreateCommand(cctx *CommandContext, parent *TemporalOperatorNexusEndpointCommand) *TemporalOperatorNexusEndpointCreateCommand {
11001121
var s TemporalOperatorNexusEndpointCreateCommand
11011122
s.Parent = parent
11021123
s.Command.DisableFlagsInUseLine = true
11031124
s.Command.Use = "create [flags]"
1104-
s.Command.Short = "Create a new Nexus Endpoint (EXPERIMENTAL)"
1125+
s.Command.Short = "Create a Nexus Endpoint (EXPERIMENTAL)"
11051126
if hasHighlighting {
1106-
s.Command.Long = "Create a new Nexus Endpoint on the Server.\n\nAn endpoint name is used in workflow code to invoke Nexus operations. The\nendpoint target may either be a worker, in which case \x1b[1m--target-namespace\x1b[0m and\n\x1b[1m--target-task-queue\x1b[0m must both be provided, or an external URL, in which case\n\x1b[1m--target-url\x1b[0m must be provided.\n\nThis command will fail if an endpoint with the same name is already registered.\n\n\x1b[1mtemporal operator nexus endpoint create \\\n --name your-endpoint \\\n --target-namespace your-namespace \\\n --target-task-queue your-task-queue \\\n --description-file DESCRIPTION.md\x1b[0m"
1127+
s.Command.Long = "Create a Nexus Endpoint on the Server.\n\nA Nexus Endpoint name is used in Workflow code to invoke Nexus Operations.\nThe endpoint target may either be a Worker, in which case\n\x1b[1m--target-namespace\x1b[0m and \x1b[1m--target-task-queue\x1b[0m must both be provided, or\nan external URL, in which case \x1b[1m--target-url\x1b[0m must be provided.\n\nThis command will fail if an Endpoint with the same name is already\nregistered.\n\n\x1b[1mtemporal operator nexus endpoint create \\\n --name your-endpoint \\\n --target-namespace your-namespace \\\n --target-task-queue your-task-queue \\\n --description-file DESCRIPTION.md\x1b[0m"
11071128
} else {
1108-
s.Command.Long = "Create a new Nexus Endpoint on the Server.\n\nAn endpoint name is used in workflow code to invoke Nexus operations. The\nendpoint target may either be a worker, in which case `--target-namespace` and\n`--target-task-queue` must both be provided, or an external URL, in which case\n`--target-url` must be provided.\n\nThis command will fail if an endpoint with the same name is already registered.\n\n```\ntemporal operator nexus endpoint create \\\n --name your-endpoint \\\n --target-namespace your-namespace \\\n --target-task-queue your-task-queue \\\n --description-file DESCRIPTION.md\n```"
1129+
s.Command.Long = "Create a Nexus Endpoint on the Server.\n\nA Nexus Endpoint name is used in Workflow code to invoke Nexus Operations.\nThe endpoint target may either be a Worker, in which case\n`--target-namespace` and `--target-task-queue` must both be provided, or\nan external URL, in which case `--target-url` must be provided.\n\nThis command will fail if an Endpoint with the same name is already\nregistered.\n\n```\ntemporal operator nexus endpoint create \\\n --name your-endpoint \\\n --target-namespace your-namespace \\\n --target-task-queue your-task-queue \\\n --description-file DESCRIPTION.md\n```"
11091130
}
11101131
s.Command.Args = cobra.NoArgs
1111-
s.Command.Flags().StringVar(&s.Name, "name", "", "Endpoint name. Required.")
1112-
_ = cobra.MarkFlagRequired(s.Command.Flags(), "name")
1113-
s.Command.Flags().StringVar(&s.Description, "description", "", "Endpoint description in markdown format (encoded using the configured codec server).")
1114-
s.Command.Flags().StringVar(&s.DescriptionFile, "description-file", "", "Endpoint description file in markdown format (encoded using the configured codec server).")
1115-
s.Command.Flags().StringVar(&s.TargetNamespace, "target-namespace", "", "Namespace in which a handler worker will be polling for Nexus tasks on.")
1116-
s.Command.Flags().StringVar(&s.TargetTaskQueue, "target-task-queue", "", "Task Queue in which a handler worker will be polling for Nexus tasks on.")
1117-
s.Command.Flags().StringVar(&s.TargetUrl, "target-url", "", "URL to direct Nexus requests to.")
1132+
s.NexusEndpointIdentityOptions.buildFlags(cctx, s.Command.Flags())
1133+
s.NexusEndpointConfigOptions.buildFlags(cctx, s.Command.Flags())
11181134
s.Command.Run = func(c *cobra.Command, args []string) {
11191135
if err := s.run(cctx, args); err != nil {
11201136
cctx.Options.Fail(err)
@@ -1126,7 +1142,7 @@ func NewTemporalOperatorNexusEndpointCreateCommand(cctx *CommandContext, parent
11261142
type TemporalOperatorNexusEndpointDeleteCommand struct {
11271143
Parent *TemporalOperatorNexusEndpointCommand
11281144
Command cobra.Command
1129-
Name string
1145+
NexusEndpointIdentityOptions
11301146
}
11311147

11321148
func NewTemporalOperatorNexusEndpointDeleteCommand(cctx *CommandContext, parent *TemporalOperatorNexusEndpointCommand) *TemporalOperatorNexusEndpointDeleteCommand {
@@ -1136,13 +1152,12 @@ func NewTemporalOperatorNexusEndpointDeleteCommand(cctx *CommandContext, parent
11361152
s.Command.Use = "delete [flags]"
11371153
s.Command.Short = "Delete a Nexus Endpoint (EXPERIMENTAL)"
11381154
if hasHighlighting {
1139-
s.Command.Long = "Delete a Nexus Endpoint configuration from the Server.\n\n\x1b[1mtemporal operator nexus endpoint delete --name your-endpoint\x1b[0m"
1155+
s.Command.Long = "Delete a Nexus Endpoint from the Server.\n\n\x1b[1mtemporal operator nexus endpoint delete --name your-endpoint\x1b[0m"
11401156
} else {
1141-
s.Command.Long = "Delete a Nexus Endpoint configuration from the Server.\n\n```\ntemporal operator nexus endpoint delete --name your-endpoint\n```"
1157+
s.Command.Long = "Delete a Nexus Endpoint from the Server.\n\n```\ntemporal operator nexus endpoint delete --name your-endpoint\n```"
11421158
}
11431159
s.Command.Args = cobra.NoArgs
1144-
s.Command.Flags().StringVar(&s.Name, "name", "", "Endpoint name. Required.")
1145-
_ = cobra.MarkFlagRequired(s.Command.Flags(), "name")
1160+
s.NexusEndpointIdentityOptions.buildFlags(cctx, s.Command.Flags())
11461161
s.Command.Run = func(c *cobra.Command, args []string) {
11471162
if err := s.run(cctx, args); err != nil {
11481163
cctx.Options.Fail(err)
@@ -1154,7 +1169,7 @@ func NewTemporalOperatorNexusEndpointDeleteCommand(cctx *CommandContext, parent
11541169
type TemporalOperatorNexusEndpointGetCommand struct {
11551170
Parent *TemporalOperatorNexusEndpointCommand
11561171
Command cobra.Command
1157-
Name string
1172+
NexusEndpointIdentityOptions
11581173
}
11591174

11601175
func NewTemporalOperatorNexusEndpointGetCommand(cctx *CommandContext, parent *TemporalOperatorNexusEndpointCommand) *TemporalOperatorNexusEndpointGetCommand {
@@ -1164,13 +1179,12 @@ func NewTemporalOperatorNexusEndpointGetCommand(cctx *CommandContext, parent *Te
11641179
s.Command.Use = "get [flags]"
11651180
s.Command.Short = "Get a Nexus Endpoint by name (EXPERIMENTAL)"
11661181
if hasHighlighting {
1167-
s.Command.Long = "Get a Nexus Endpoint configuration by name from the Server.\n\n\x1b[1mtemporal operator nexus endpoint get --name your-endpoint\x1b[0m"
1182+
s.Command.Long = "Get a Nexus Endpoint by name from the Server.\n\n\x1b[1mtemporal operator nexus endpoint get --name your-endpoint\x1b[0m"
11681183
} else {
1169-
s.Command.Long = "Get a Nexus Endpoint configuration by name from the Server.\n\n```\ntemporal operator nexus endpoint get --name your-endpoint\n```"
1184+
s.Command.Long = "Get a Nexus Endpoint by name from the Server.\n\n```\ntemporal operator nexus endpoint get --name your-endpoint\n```"
11701185
}
11711186
s.Command.Args = cobra.NoArgs
1172-
s.Command.Flags().StringVar(&s.Name, "name", "", "Endpoint name. Required.")
1173-
_ = cobra.MarkFlagRequired(s.Command.Flags(), "name")
1187+
s.NexusEndpointIdentityOptions.buildFlags(cctx, s.Command.Flags())
11741188
s.Command.Run = func(c *cobra.Command, args []string) {
11751189
if err := s.run(cctx, args); err != nil {
11761190
cctx.Options.Fail(err)
@@ -1191,9 +1205,9 @@ func NewTemporalOperatorNexusEndpointListCommand(cctx *CommandContext, parent *T
11911205
s.Command.Use = "list [flags]"
11921206
s.Command.Short = "List Nexus Endpoints (EXPERIMENTAL)"
11931207
if hasHighlighting {
1194-
s.Command.Long = "List all Nexus Endpoint configurations on the Server.\n\n\x1b[1mtemporal operator nexus endpoint list\x1b[0m"
1208+
s.Command.Long = "List all Nexus Endpoints on the Server.\n\n\x1b[1mtemporal operator nexus endpoint list\x1b[0m"
11951209
} else {
1196-
s.Command.Long = "List all Nexus Endpoint configurations on the Server.\n\n```\ntemporal operator nexus endpoint list\n```"
1210+
s.Command.Long = "List all Nexus Endpoints on the Server.\n\n```\ntemporal operator nexus endpoint list\n```"
11971211
}
11981212
s.Command.Args = cobra.NoArgs
11991213
s.Command.Run = func(c *cobra.Command, args []string) {
@@ -1205,15 +1219,11 @@ func NewTemporalOperatorNexusEndpointListCommand(cctx *CommandContext, parent *T
12051219
}
12061220

12071221
type TemporalOperatorNexusEndpointUpdateCommand struct {
1208-
Parent *TemporalOperatorNexusEndpointCommand
1209-
Command cobra.Command
1210-
Name string
1211-
Description string
1212-
DescriptionFile string
1222+
Parent *TemporalOperatorNexusEndpointCommand
1223+
Command cobra.Command
1224+
NexusEndpointIdentityOptions
1225+
NexusEndpointConfigOptions
12131226
UnsetDescription bool
1214-
TargetNamespace string
1215-
TargetTaskQueue string
1216-
TargetUrl string
12171227
}
12181228

12191229
func NewTemporalOperatorNexusEndpointUpdateCommand(cctx *CommandContext, parent *TemporalOperatorNexusEndpointCommand) *TemporalOperatorNexusEndpointUpdateCommand {
@@ -1223,19 +1233,14 @@ func NewTemporalOperatorNexusEndpointUpdateCommand(cctx *CommandContext, parent
12231233
s.Command.Use = "update [flags]"
12241234
s.Command.Short = "Update an existing Nexus Endpoint (EXPERIMENTAL)"
12251235
if hasHighlighting {
1226-
s.Command.Long = "Update an existing Nexus Endpoint on the Server.\n\nAn endpoint name is used in workflow code to invoke Nexus operations. The\nendpoint target may either be a worker, in which case \x1b[1m--target-namespace\x1b[0m and\n\x1b[1m--target-task-queue\x1b[0m must both be provided, or an external URL, in which case\n\x1b[1m--target-url\x1b[0m must be provided.\n\nThe endpoint is patched; existing fields for which flags are not provided are\nleft as they were.\n\nUpdate only the target task queue:\n\n\x1b[1mtemporal operator nexus endpoint update \\\n --name your-endpoint \\\n --target-task-queue your-other-queue\x1b[0m\n\nUpdate only the description:\n\n\x1b[1mtemporal operator nexus endpoint update \\\n --name your-endpoint \\\n --description-file DESCRIPTION.md\x1b[0m"
1236+
s.Command.Long = "Update an existing Nexus Endpoint on the Server.\n\nA Nexus Endpoint name is used in Workflow code to invoke Nexus Operations.\nThe Endpoint target may either be a Worker, in which case\n\x1b[1m--target-namespace\x1b[0m and \x1b[1m--target-task-queue\x1b[0m must both be provided, or\nan external URL, in which case \x1b[1m--target-url\x1b[0m must be provided.\n\nThe Endpoint is patched; existing fields for which flags are not provided\nare left as they were.\n\nUpdate only the target task queue:\n\n\x1b[1mtemporal operator nexus endpoint update \\\n --name your-endpoint \\\n --target-task-queue your-other-queue\x1b[0m\n\nUpdate only the description:\n\n\x1b[1mtemporal operator nexus endpoint update \\\n --name your-endpoint \\\n --description-file DESCRIPTION.md\x1b[0m"
12271237
} else {
1228-
s.Command.Long = "Update an existing Nexus Endpoint on the Server.\n\nAn endpoint name is used in workflow code to invoke Nexus operations. The\nendpoint target may either be a worker, in which case `--target-namespace` and\n`--target-task-queue` must both be provided, or an external URL, in which case\n`--target-url` must be provided.\n\nThe endpoint is patched; existing fields for which flags are not provided are\nleft as they were.\n\nUpdate only the target task queue:\n\n```\ntemporal operator nexus endpoint update \\\n --name your-endpoint \\\n --target-task-queue your-other-queue\n```\n\nUpdate only the description:\n\n```\ntemporal operator nexus endpoint update \\\n --name your-endpoint \\\n --description-file DESCRIPTION.md\n```"
1238+
s.Command.Long = "Update an existing Nexus Endpoint on the Server.\n\nA Nexus Endpoint name is used in Workflow code to invoke Nexus Operations.\nThe Endpoint target may either be a Worker, in which case\n`--target-namespace` and `--target-task-queue` must both be provided, or\nan external URL, in which case `--target-url` must be provided.\n\nThe Endpoint is patched; existing fields for which flags are not provided\nare left as they were.\n\nUpdate only the target task queue:\n\n```\ntemporal operator nexus endpoint update \\\n --name your-endpoint \\\n --target-task-queue your-other-queue\n```\n\nUpdate only the description:\n\n```\ntemporal operator nexus endpoint update \\\n --name your-endpoint \\\n --description-file DESCRIPTION.md\n```"
12291239
}
12301240
s.Command.Args = cobra.NoArgs
1231-
s.Command.Flags().StringVar(&s.Name, "name", "", "Endpoint name. Required.")
1232-
_ = cobra.MarkFlagRequired(s.Command.Flags(), "name")
1233-
s.Command.Flags().StringVar(&s.Description, "description", "", "Endpoint description in markdown format (encoded using the configured codec server).")
1234-
s.Command.Flags().StringVar(&s.DescriptionFile, "description-file", "", "Endpoint description file in markdown format (encoded using the configured codec server).")
12351241
s.Command.Flags().BoolVar(&s.UnsetDescription, "unset-description", false, "Unset the description.")
1236-
s.Command.Flags().StringVar(&s.TargetNamespace, "target-namespace", "", "Namespace in which a handler worker will be polling for Nexus tasks on.")
1237-
s.Command.Flags().StringVar(&s.TargetTaskQueue, "target-task-queue", "", "Task Queue in which a handler worker will be polling for Nexus tasks on.")
1238-
s.Command.Flags().StringVar(&s.TargetUrl, "target-url", "", "URL to direct Nexus requests to.")
1242+
s.NexusEndpointIdentityOptions.buildFlags(cctx, s.Command.Flags())
1243+
s.NexusEndpointConfigOptions.buildFlags(cctx, s.Command.Flags())
12391244
s.Command.Run = func(c *cobra.Command, args []string) {
12401245
if err := s.run(cctx, args); err != nil {
12411246
cctx.Options.Fail(err)

0 commit comments

Comments
 (0)