Skip to content

Commit d596542

Browse files
committed
fix(workflow-cli): args validation errors for lifecycles and healthchecks
1 parent a00e8f8 commit d596542

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/parser/healthchecks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func healthchecksSet(cmdr *commands.DryccCmd) *cobra.Command {
7777
healthCheckCompletion := completion.HealthCheckCompletion{ConfigFile: &cmdr.ConfigFile}
7878
cmd := &cobra.Command{
7979
Use: "set <probe> <action> [flags] [--] <args>...",
80-
Args: cobra.MinimumNArgs(2),
80+
Args: cobra.MinimumNArgs(3),
8181
Example: template.CustomExample(
8282
"drycc healthchecks set readinessProbe httpGet --path=/health -- 8000",
8383
map[string]string{

internal/parser/lifecycles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func lifecyclesSet(cmdr *commands.DryccCmd) *cobra.Command {
7171
lifecycleCompletion := completion.LifecycleCompletion{ConfigFile: &cmdr.ConfigFile}
7272
cmd := &cobra.Command{
7373
Use: "set <handler> <action> [flags] [--] <args>...",
74-
Args: cobra.MinimumNArgs(2),
74+
Args: cobra.MinimumNArgs(3),
7575
Example: template.CustomExample(
7676
"drycc lifecycles set postStart httpGet --path=/health -- 8000",
7777
map[string]string{

0 commit comments

Comments
 (0)