@@ -21,7 +21,7 @@ const (
2121 DRY_RUN_FLAG = "dry-run"
2222 DRY_RUN_ARG = "dryRun"
2323 DRY_RUN_MESSAGE = "\n *** dry-run mode, changes have NOT been committed. ***\n "
24- PATH_SPEC_HELP = `The domain and path are separated by a ":". pathSpec supports a glob pattern.
24+ PATH_SPEC_HELP = `The (optional) domain and path are separated by a ":". appPathGlob supports a glob pattern.
2525In the glob, * matches any number of characters, ** matches any number of characters including /.
2626all is a shortcut for "*:**", which matches all apps across all domains, including no domain.
2727To prevent shell expansion for *, placing the path in quotes is recommended.
@@ -174,10 +174,10 @@ func appListCommand(commonFlags []cli.Flag, clientConfig *types.ClientConfig) *c
174174 Usage : "List apps" ,
175175 Flags : flags ,
176176 Before : altsrc .InitInputSourceWithContext (flags , altsrc .NewTomlSourceFromFlagFunc (configFileFlagName )),
177- ArgsUsage : "[<pathSpec >]" ,
178- UsageText : `args: [<pathSpec >]
177+ ArgsUsage : "[<appPathGlob >]" ,
178+ UsageText : `args: [<appPathGlob >]
179179
180- <pathSpec > defaults to "*:**" (same as "all") for the list command.
180+ <appPathGlob > defaults to "*:**" (same as "all") for the list command.
181181` + PATH_SPEC_HELP +
182182 `
183183Examples:
@@ -190,12 +190,12 @@ Examples:
190190 List apps at the lop level with no domain specified, with jsonl format: clace app list --format jsonl "*"` ,
191191 Action : func (cCtx * cli.Context ) error {
192192 if cCtx .NArg () > 1 {
193- return fmt .Errorf ("only one argument expected: <pathSpec >" )
193+ return fmt .Errorf ("only one argument expected: <appPathGlob >" )
194194 }
195195 values := url.Values {}
196196 values .Add ("internal" , fmt .Sprintf ("%t" , cCtx .Bool ("internal" )))
197197 if cCtx .NArg () == 1 {
198- values .Add ("pathSpec " , cCtx .Args ().Get (0 ))
198+ values .Add ("appPathGlob " , cCtx .Args ().Get (0 ))
199199 }
200200
201201 client := system .NewHttpClient (clientConfig .ServerUri , clientConfig .AdminUser , clientConfig .Client .AdminPassword , clientConfig .Client .SkipCertCheck )
@@ -327,24 +327,24 @@ func appDeleteCommand(commonFlags []cli.Flag, clientConfig *types.ClientConfig)
327327 Usage : "Delete an app" ,
328328 Flags : flags ,
329329 Before : altsrc .InitInputSourceWithContext (flags , altsrc .NewTomlSourceFromFlagFunc (configFileFlagName )),
330- ArgsUsage : "<pathSpec >" ,
330+ ArgsUsage : "<appPathGlob >" ,
331331
332- UsageText : `args: <pathSpec >
332+ UsageText : `args: <appPathGlob >
333333
334- <pathSpec > is a required argument. ` + PATH_SPEC_HELP + `
334+ <appPathGlob > is a required argument. ` + PATH_SPEC_HELP + `
335335
336336Examples:
337337 Delete all apps, across domains, in dry-run mode: clace app delete --dry-run all
338338 Delete apps in the example.com domain: clace app delete "example.com:**"` ,
339339
340340 Action : func (cCtx * cli.Context ) error {
341341 if cCtx .NArg () != 1 {
342- return fmt .Errorf ("requires one argument: <pathSpec >" )
342+ return fmt .Errorf ("requires one argument: <appPathGlob >" )
343343 }
344344
345345 client := system .NewHttpClient (clientConfig .ServerUri , clientConfig .AdminUser , clientConfig .Client .AdminPassword , clientConfig .Client .SkipCertCheck )
346346 values := url.Values {}
347- values .Add ("pathSpec " , cCtx .Args ().Get (0 ))
347+ values .Add ("appPathGlob " , cCtx .Args ().Get (0 ))
348348 values .Add (DRY_RUN_ARG , strconv .FormatBool (cCtx .Bool (DRY_RUN_FLAG )))
349349
350350 var deleteResult types.AppDeleteResponse
@@ -377,11 +377,11 @@ func appApproveCommand(commonFlags []cli.Flag, clientConfig *types.ClientConfig)
377377 Usage : "Approve app permissions" ,
378378 Flags : flags ,
379379 Before : altsrc .InitInputSourceWithContext (flags , altsrc .NewTomlSourceFromFlagFunc (configFileFlagName )),
380- ArgsUsage : "<pathSpec >" ,
380+ ArgsUsage : "<appPathGlob >" ,
381381
382- UsageText : `args: <pathSpec >
382+ UsageText : `args: <appPathGlob >
383383
384- <pathSpec > is a required argument. ` + PATH_SPEC_HELP + `
384+ <appPathGlob > is a required argument. ` + PATH_SPEC_HELP + `
385385
386386 Examples:
387387 Approve all apps, across domains: clace app approve all
@@ -390,12 +390,12 @@ func appApproveCommand(commonFlags []cli.Flag, clientConfig *types.ClientConfig)
390390
391391 Action : func (cCtx * cli.Context ) error {
392392 if cCtx .NArg () != 1 {
393- return fmt .Errorf ("requires one argument: <pathSpec >" )
393+ return fmt .Errorf ("requires one argument: <appPathGlob >" )
394394 }
395395
396396 client := system .NewHttpClient (clientConfig .ServerUri , clientConfig .AdminUser , clientConfig .Client .AdminPassword , clientConfig .Client .SkipCertCheck )
397397 values := url.Values {}
398- values .Add ("pathSpec " , cCtx .Args ().Get (0 ))
398+ values .Add ("appPathGlob " , cCtx .Args ().Get (0 ))
399399 values .Add (DRY_RUN_ARG , strconv .FormatBool (cCtx .Bool (DRY_RUN_FLAG )))
400400 values .Add (PROMOTE_ARG , strconv .FormatBool (cCtx .Bool (PROMOTE_FLAG )))
401401
@@ -454,11 +454,11 @@ func appReloadCommand(commonFlags []cli.Flag, clientConfig *types.ClientConfig)
454454 Usage : "Reload the app source code" ,
455455 Flags : flags ,
456456 Before : altsrc .InitInputSourceWithContext (flags , altsrc .NewTomlSourceFromFlagFunc (configFileFlagName )),
457- ArgsUsage : "<pathSpec >" ,
457+ ArgsUsage : "<appPathGlob >" ,
458458
459- UsageText : `args: <pathSpec >
459+ UsageText : `args: <appPathGlob >
460460
461- <pathSpec > is a required argument. ` + PATH_SPEC_HELP + `
461+ <appPathGlob > is a required argument. ` + PATH_SPEC_HELP + `
462462 Dev apps are reloaded from disk. For prod apps, the stage app is reloaded from git (or from local disk if git is not used).
463463 If --approve option is specified, the app permissions are audited and approved. If --approve is not specified and the app needs additional
464464 permissions, the reload will fail. If --promote is specified, the stage app is promoted to prod after reload. If --promote is not specified,
@@ -474,12 +474,12 @@ func appReloadCommand(commonFlags []cli.Flag, clientConfig *types.ClientConfig)
474474
475475 Action : func (cCtx * cli.Context ) error {
476476 if cCtx .NArg () != 1 {
477- return fmt .Errorf ("requires one argument: <pathSpec >" )
477+ return fmt .Errorf ("requires one argument: <appPathGlob >" )
478478 }
479479
480480 client := system .NewHttpClient (clientConfig .ServerUri , clientConfig .AdminUser , clientConfig .Client .AdminPassword , clientConfig .Client .SkipCertCheck )
481481 values := url.Values {}
482- values .Add ("pathSpec " , cCtx .Args ().First ())
482+ values .Add ("appPathGlob " , cCtx .Args ().First ())
483483 values .Add ("approve" , strconv .FormatBool (cCtx .Bool ("approve" )))
484484 values .Add ("promote" , strconv .FormatBool (cCtx .Bool ("promote" )))
485485 values .Add ("branch" , cCtx .String ("branch" ))
@@ -550,23 +550,23 @@ func appPromoteCommand(commonFlags []cli.Flag, clientConfig *types.ClientConfig)
550550 Usage : "Promote the app from staging to production" ,
551551 Flags : flags ,
552552 Before : altsrc .InitInputSourceWithContext (flags , altsrc .NewTomlSourceFromFlagFunc (configFileFlagName )),
553- ArgsUsage : "<pathSpec >" ,
554- UsageText : `args: <pathSpec >
553+ ArgsUsage : "<appPathGlob >" ,
554+ UsageText : `args: <appPathGlob >
555555
556- <pathSpec > is a required argument. ` + PATH_SPEC_HELP + `
556+ <appPathGlob > is a required argument. ` + PATH_SPEC_HELP + `
557557
558558 Examples:
559559 Promote all apps, across domains: clace app promote all
560560 Promote apps in the example.com domain: clace app promote "example.com:**"` ,
561561
562562 Action : func (cCtx * cli.Context ) error {
563563 if cCtx .NArg () != 1 {
564- return fmt .Errorf ("requires one argument: <pathSpec >" )
564+ return fmt .Errorf ("requires one argument: <appPathGlob >" )
565565 }
566566
567567 client := system .NewHttpClient (clientConfig .ServerUri , clientConfig .AdminUser , clientConfig .Client .AdminPassword , clientConfig .Client .SkipCertCheck )
568568 values := url.Values {}
569- values .Add ("pathSpec " , cCtx .Args ().First ())
569+ values .Add ("appPathGlob " , cCtx .Args ().First ())
570570 values .Add (DRY_RUN_ARG , strconv .FormatBool (cCtx .Bool (DRY_RUN_FLAG )))
571571
572572 var promoteResponse types.AppPromoteResponse
0 commit comments