@knocklabs/cli 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,7 +16,7 @@ $ npm install -g @knocklabs/cli
16
16
  $ knock COMMAND
17
17
  running command...
18
18
  $ knock (--version)
19
- @knocklabs/cli/0.1.0 linux-x64 node-v16.4.2
19
+ @knocklabs/cli/0.1.3 linux-x64 node-v18.16.0
20
20
  $ knock --help [COMMAND]
21
21
  USAGE
22
22
  $ knock COMMAND
@@ -50,35 +50,40 @@ USAGE
50
50
  * [`knock workflow list`](#knock-workflow-list)
51
51
  * [`knock workflow pull [WORKFLOWKEY]`](#knock-workflow-pull-workflowkey)
52
52
  * [`knock workflow push [WORKFLOWKEY]`](#knock-workflow-push-workflowkey)
53
+ * [`knock workflow run WORKFLOWKEY`](#knock-workflow-run-workflowkey)
53
54
  * [`knock workflow validate [WORKFLOWKEY]`](#knock-workflow-validate-workflowkey)
54
55
 
55
56
  ## `knock commit`
56
57
 
58
+ Commit all changes in development environment.
59
+
57
60
  ```
58
61
  USAGE
59
62
  $ knock commit --service-token <value> [--environment development] [-m <value>] [--force]
60
63
 
61
64
  FLAGS
62
- -m, --commit-message=<value> Use the given value as the commit message
65
+ -m, --commit-message=<value> Use the given value as the commit message.
63
66
  --environment=<option> [default: development] Committing changes applies to the development environment only,
64
- use `commit promote` to promote changes to a later environment
67
+ use `commit promote` to promote changes to a subsequent environment.
65
68
  <options: development>
66
- --force
67
- --service-token=<value> (required) The service token to authenticate with
69
+ --force Remove the confirmation prompt.
70
+ --service-token=<value> (required) The service token to authenticate with.
68
71
  ```
69
72
 
70
- _See code: [dist/commands/commit/index.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.0/dist/commands/commit/index.ts)_
73
+ _See code: [dist/commands/commit/index.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.3/dist/commands/commit/index.ts)_
71
74
 
72
75
  ## `knock commit promote`
73
76
 
77
+ Promote all changes to the destination environment.
78
+
74
79
  ```
75
80
  USAGE
76
81
  $ knock commit promote --service-token <value> --to <value> [--force]
77
82
 
78
83
  FLAGS
79
- --force
80
- --service-token=<value> (required) The service token to authenticate with
81
- --to=<value> (required) The destination environment to promote changes from the preceding environment
84
+ --force Remove the confirmation prompt.
85
+ --service-token=<value> (required) The service token to authenticate with.
86
+ --to=<value> (required) The destination environment to promote changes from the preceding environment.
82
87
  ```
83
88
 
84
89
  ## `knock help [COMMANDS]`
@@ -119,7 +124,7 @@ EXAMPLES
119
124
  $ knock plugins
120
125
  ```
121
126
 
122
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/index.ts)_
127
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.0.1/src/commands/plugins/index.ts)_
123
128
 
124
129
  ## `knock plugins:install PLUGIN...`
125
130
 
@@ -336,15 +341,22 @@ DESCRIPTION
336
341
 
337
342
  ## `knock translation get TRANSLATIONREF`
338
343
 
344
+ Display a single translation from an environment.
345
+
339
346
  ```
340
347
  USAGE
341
348
  $ knock translation get TRANSLATIONREF --service-token <value> [--environment <value>] [--hide-uncommitted-changes]
342
349
  [--json]
343
350
 
351
+ ARGUMENTS
352
+ TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
353
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
354
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
355
+
344
356
  FLAGS
345
- --environment=<value> [default: development]
346
- --hide-uncommitted-changes
347
- --service-token=<value> (required) The service token to authenticate with
357
+ --environment=<value> [default: development] The environment to use.
358
+ --hide-uncommitted-changes Hide any uncommitted changes.
359
+ --service-token=<value> (required) The service token to authenticate with.
348
360
 
349
361
  GLOBAL FLAGS
350
362
  --json Format output as json.
@@ -352,18 +364,20 @@ GLOBAL FLAGS
352
364
 
353
365
  ## `knock translation list`
354
366
 
367
+ Display all translations for an environment.
368
+
355
369
  ```
356
370
  USAGE
357
371
  $ knock translation list --service-token <value> [--environment <value>] [--hide-uncommitted-changes] [--after
358
372
  <value>] [--before <value>] [--limit <value>] [--json]
359
373
 
360
374
  FLAGS
361
- --after=<value>
362
- --before=<value>
363
- --environment=<value> [default: development]
364
- --hide-uncommitted-changes
365
- --limit=<value>
366
- --service-token=<value> (required) The service token to authenticate with
375
+ --after=<value> The cursor after which to fetch the next page.
376
+ --before=<value> The cursor before which to fetch the previous page.
377
+ --environment=<value> [default: development] The environment to use.
378
+ --hide-uncommitted-changes Hide any uncommitted changes.
379
+ --limit=<value> The total number of entries to fetch per page.
380
+ --service-token=<value> (required) The service token to authenticate with.
367
381
 
368
382
  GLOBAL FLAGS
369
383
  --json Format output as json.
@@ -371,93 +385,130 @@ GLOBAL FLAGS
371
385
 
372
386
  ## `knock translation pull [TRANSLATIONREF]`
373
387
 
388
+ Pull one or more translations from an environment into a local file system.
389
+
374
390
  ```
375
391
  USAGE
376
392
  $ knock translation pull [TRANSLATIONREF] --service-token <value> [--environment <value>] [--translations-dir
377
393
  <value> --all] [--hide-uncommitted-changes] [--force]
378
394
 
395
+ ARGUMENTS
396
+ TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
397
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
398
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
399
+
379
400
  FLAGS
380
- --all
381
- --environment=<value> [default: development]
382
- --force
383
- --hide-uncommitted-changes
384
- --service-token=<value> (required) The service token to authenticate with
385
- --translations-dir=<value>
401
+ --all Whether to pull all translations from the specified environment.
402
+ --environment=<value> [default: development] The environment to use.
403
+ --force Remove the confirmation prompt.
404
+ --hide-uncommitted-changes Hide any uncommitted changes.
405
+ --service-token=<value> (required) The service token to authenticate with.
406
+ --translations-dir=<value> The target directory path to pull all translations into.
386
407
  ```
387
408
 
388
409
  ## `knock translation push [TRANSLATIONREF]`
389
410
 
411
+ Push one or more translations from a local file system to Knock.
412
+
390
413
  ```
391
414
  USAGE
392
415
  $ knock translation push [TRANSLATIONREF] --service-token <value> [--environment development] [--translations-dir
393
416
  <value> --all] [-m <value> --commit]
394
417
 
418
+ ARGUMENTS
419
+ TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
420
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
421
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
422
+
395
423
  FLAGS
396
424
  -m, --commit-message=<value> Use the given value as the commit message
397
- --all
425
+ --all Whether to push all translations from the target directory.
398
426
  --commit Push and commit the translation(s) at the same time
399
427
  --environment=<option> [default: development] Pushing a translation is only allowed in the development
400
428
  environment
401
429
  <options: development>
402
- --service-token=<value> (required) The service token to authenticate with
403
- --translations-dir=<value>
430
+ --service-token=<value> (required) The service token to authenticate with.
431
+ --translations-dir=<value> The target directory path to find all translations to push.
404
432
  ```
405
433
 
406
434
  ## `knock translation validate [TRANSLATIONREF]`
407
435
 
436
+ Validate one or more translations from a local file system.
437
+
408
438
  ```
409
439
  USAGE
410
440
  $ knock translation validate [TRANSLATIONREF] --service-token <value> [--environment development] [--translations-dir
411
441
  <value> --all]
412
442
 
443
+ ARGUMENTS
444
+ TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
445
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
446
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
447
+
413
448
  FLAGS
414
- --all
415
- --environment=<option> [default: development] Validating a workflow is only done in the development environment
449
+ --all Whether to validate all translations from the target directory.
450
+ --environment=<option> [default: development] Validating a translation is only done in the development
451
+ environment
416
452
  <options: development>
417
- --service-token=<value> (required) The service token to authenticate with
418
- --translations-dir=<value>
453
+ --service-token=<value> (required) The service token to authenticate with.
454
+ --translations-dir=<value> The target directory path to find all translations to validate.
419
455
  ```
420
456
 
421
457
  ## `knock whoami`
422
458
 
459
+ Verify the provided service token.
460
+
423
461
  ```
424
462
  USAGE
425
463
  $ knock whoami --service-token <value> [--json]
426
464
 
427
465
  FLAGS
428
- --service-token=<value> (required) The service token to authenticate with
466
+ --service-token=<value> (required) The service token to authenticate with.
429
467
 
430
468
  GLOBAL FLAGS
431
469
  --json Format output as json.
432
470
  ```
433
471
 
434
- _See code: [dist/commands/whoami.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.0/dist/commands/whoami.ts)_
472
+ _See code: [dist/commands/whoami.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.3/dist/commands/whoami.ts)_
435
473
 
436
474
  ## `knock workflow activate WORKFLOWKEY`
437
475
 
476
+ Activate or deactivate a workflow in a given environment.
477
+
438
478
  ```
439
479
  USAGE
440
480
  $ knock workflow activate WORKFLOWKEY --service-token <value> --environment <value> [--status true|false] [--force]
441
481
 
442
482
  FLAGS
443
- --environment=<value> (required)
444
- --force
445
- --service-token=<value> (required) The service token to authenticate with
446
- --status=<option> [default: true]
483
+ --environment=<value> (required) The environment to use.
484
+ --force Remove the confirmation prompt.
485
+ --service-token=<value> (required) The service token to authenticate with.
486
+ --status=<option> [default: true] The workflow active status to set.
447
487
  <options: true|false>
488
+
489
+ DESCRIPTION
490
+ Activate or deactivate a workflow in a given environment.
491
+
492
+ This immediately enables or disables a workflow in a given environment without
493
+ needing to go through environment promotion.
494
+
495
+ By default, this command activates a given workflow. Pass in the --status flag
496
+ with `false` in order to deactivate it.
448
497
  ```
449
498
 
450
499
  ## `knock workflow get WORKFLOWKEY`
451
500
 
501
+ Display a single workflow from an environment.
502
+
452
503
  ```
453
504
  USAGE
454
505
  $ knock workflow get WORKFLOWKEY --service-token <value> [--environment <value>] [--hide-uncommitted-changes]
455
506
  [--json]
456
507
 
457
508
  FLAGS
458
- --environment=<value> [default: development]
459
- --hide-uncommitted-changes
460
- --service-token=<value> (required) The service token to authenticate with
509
+ --environment=<value> [default: development] The environment to use.
510
+ --hide-uncommitted-changes Hide any uncommitted changes.
511
+ --service-token=<value> (required) The service token to authenticate with.
461
512
 
462
513
  GLOBAL FLAGS
463
514
  --json Format output as json.
@@ -465,18 +516,20 @@ GLOBAL FLAGS
465
516
 
466
517
  ## `knock workflow list`
467
518
 
519
+ Display all workflows for an environment.
520
+
468
521
  ```
469
522
  USAGE
470
523
  $ knock workflow list --service-token <value> [--environment <value>] [--hide-uncommitted-changes] [--after
471
524
  <value>] [--before <value>] [--limit <value>] [--json]
472
525
 
473
526
  FLAGS
474
- --after=<value>
475
- --before=<value>
476
- --environment=<value> [default: development]
477
- --hide-uncommitted-changes
478
- --limit=<value>
479
- --service-token=<value> (required) The service token to authenticate with
527
+ --after=<value> The cursor after which to fetch the next page.
528
+ --before=<value> The cursor before which to fetch the previous page.
529
+ --environment=<value> [default: development] The environment to use.
530
+ --hide-uncommitted-changes Hide any uncommitted changes.
531
+ --limit=<value> The total number of entries to fetch per page.
532
+ --service-token=<value> (required) The service token to authenticate with.
480
533
 
481
534
  GLOBAL FLAGS
482
535
  --json Format output as json.
@@ -484,22 +537,26 @@ GLOBAL FLAGS
484
537
 
485
538
  ## `knock workflow pull [WORKFLOWKEY]`
486
539
 
540
+ Pull one or more workflows from an environment into a local file system.
541
+
487
542
  ```
488
543
  USAGE
489
544
  $ knock workflow pull [WORKFLOWKEY] --service-token <value> [--environment <value>] [--workflows-dir <value>
490
545
  --all] [--hide-uncommitted-changes] [--force]
491
546
 
492
547
  FLAGS
493
- --all
494
- --environment=<value> [default: development]
495
- --force
496
- --hide-uncommitted-changes
497
- --service-token=<value> (required) The service token to authenticate with
498
- --workflows-dir=<value>
548
+ --all Whether to pull all workflows from the specified environment.
549
+ --environment=<value> [default: development] The environment to use.
550
+ --force Remove the confirmation prompt.
551
+ --hide-uncommitted-changes Hide any uncommitted changes.
552
+ --service-token=<value> (required) The service token to authenticate with.
553
+ --workflows-dir=<value> The target directory path to pull all workflows into.
499
554
  ```
500
555
 
501
556
  ## `knock workflow push [WORKFLOWKEY]`
502
557
 
558
+ Push one or more workflows from a local file system to Knock.
559
+
503
560
  ```
504
561
  USAGE
505
562
  $ knock workflow push [WORKFLOWKEY] --service-token <value> [--environment development] [--workflows-dir <value>
@@ -507,26 +564,46 @@ USAGE
507
564
 
508
565
  FLAGS
509
566
  -m, --commit-message=<value> Use the given value as the commit message
510
- --all
567
+ --all Whether to push all workflows from the target directory.
511
568
  --commit Push and commit the workflow(s) at the same time
512
569
  --environment=<option> [default: development] Pushing a workflow is only allowed in the development environment
513
570
  <options: development>
514
- --service-token=<value> (required) The service token to authenticate with
515
- --workflows-dir=<value>
571
+ --service-token=<value> (required) The service token to authenticate with.
572
+ --workflows-dir=<value> The target directory path to find all workflows to push.
573
+ ```
574
+
575
+ ## `knock workflow run WORKFLOWKEY`
576
+
577
+ Test run a workflow using the latest version from Knock, or a local workflow directory.
578
+
579
+ ```
580
+ USAGE
581
+ $ knock workflow run WORKFLOWKEY --service-token <value> --recipients <value> [--environment <value>] [--actor
582
+ <value>] [--tenant <value>] [--data <value>]
583
+
584
+ FLAGS
585
+ --actor=<value> An actor id for the workflow run.
586
+ --data=<value> A JSON string of the data for this workflow
587
+ --environment=<value> [default: development] The environment in which to run the workflow
588
+ --recipients=<value>... (required) One or more recipient ids for this workflow run, separated by comma.
589
+ --service-token=<value> (required) The service token to authenticate with.
590
+ --tenant=<value> A tenant id for the workflow run.
516
591
  ```
517
592
 
518
593
  ## `knock workflow validate [WORKFLOWKEY]`
519
594
 
595
+ Validate one or more workflows from a local file system.
596
+
520
597
  ```
521
598
  USAGE
522
599
  $ knock workflow validate [WORKFLOWKEY] --service-token <value> [--environment development] [--workflows-dir <value>
523
600
  --all]
524
601
 
525
602
  FLAGS
526
- --all
603
+ --all Whether to validate all workflows from the target directory.
527
604
  --environment=<option> [default: development] Validating a workflow is only done in the development environment
528
605
  <options: development>
529
- --service-token=<value> (required) The service token to authenticate with
530
- --workflows-dir=<value>
606
+ --service-token=<value> (required) The service token to authenticate with.
607
+ --workflows-dir=<value> The target directory path to find all workflows to validate.
531
608
  ```
532
609
  <!-- commandsstop -->
@@ -28,17 +28,20 @@ class Commit extends _baseCommand.default {
28
28
  this.log(`‣ Successfully committed all changes in \`${flags.environment}\` environment`);
29
29
  }
30
30
  }
31
+ Commit.summary = "Commit all changes in development environment.";
31
32
  Commit.flags = {
32
33
  environment: _core.Flags.string({
33
- summary: "Committing changes applies to the development environment only, use `commit promote` to promote changes to a later environment",
34
+ summary: "Committing changes applies to the development environment only, use `commit promote` to promote changes to a subsequent environment.",
34
35
  default: _const.KnockEnv.Development,
35
36
  options: [
36
37
  _const.KnockEnv.Development
37
38
  ]
38
39
  }),
39
40
  "commit-message": _core.Flags.string({
40
- summary: "Use the given value as the commit message",
41
+ summary: "Use the given value as the commit message.",
41
42
  char: "m"
42
43
  }),
43
- force: _core.Flags.boolean()
44
+ force: _core.Flags.boolean({
45
+ summary: "Remove the confirmation prompt."
46
+ })
44
47
  };
@@ -27,10 +27,13 @@ class CommitPromote extends _baseCommand.default {
27
27
  this.log(`‣ Successfully promoted all changes to \`${flags.to}\` environment`);
28
28
  }
29
29
  }
30
+ CommitPromote.summary = "Promote all changes to the destination environment.";
30
31
  CommitPromote.flags = {
31
32
  to: _core.Flags.string({
32
- summary: "The destination environment to promote changes from the preceding environment",
33
+ summary: "The destination environment to promote changes from the preceding environment.",
33
34
  required: true
34
35
  }),
35
- force: _core.Flags.boolean()
36
+ force: _core.Flags.boolean({
37
+ summary: "Remove the confirmation prompt."
38
+ })
36
39
  };
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>Knock
8
+ });
9
+ const _enquirer = /*#__PURE__*/ _interopRequireDefault(require("enquirer"));
10
+ const _baseCommand = /*#__PURE__*/ _interopRequireDefault(require("../lib/base-command"));
11
+ function _interopRequireDefault(obj) {
12
+ return obj && obj.__esModule ? obj : {
13
+ default: obj
14
+ };
15
+ }
16
+ const JOKES = [
17
+ [
18
+ "Boo.",
19
+ "Boo who?",
20
+ "Don't cry, it's just a joke!"
21
+ ],
22
+ [
23
+ "Cows go.",
24
+ "Cows go who?",
25
+ "No silly, cows go moo!"
26
+ ],
27
+ [
28
+ "Lettuce.",
29
+ "Lettuce who?",
30
+ "Lettuce in!"
31
+ ],
32
+ [
33
+ "Interrupting cow.",
34
+ "Interrupting cow wh—",
35
+ "MOO!"
36
+ ],
37
+ [
38
+ "Alpaca.",
39
+ "Alpaca who?",
40
+ "Alpaca the suitcase, let's go on vacation!"
41
+ ],
42
+ [
43
+ "To.",
44
+ "To who?",
45
+ "It's to whom."
46
+ ],
47
+ [
48
+ "HIPAA.",
49
+ "HIPAA who?",
50
+ "I'm sorry, I’m not authorized to release that information."
51
+ ],
52
+ [
53
+ "Control freak.",
54
+ "Con–",
55
+ "Okay, now you say, 'Control freak who?'."
56
+ ],
57
+ [
58
+ "Dejav.",
59
+ "Dejav who?",
60
+ "Knock, knock."
61
+ ],
62
+ [
63
+ "Art.",
64
+ "Art who?",
65
+ "R2D2!"
66
+ ],
67
+ [
68
+ "Spell.",
69
+ "Spell who?",
70
+ "W-h-o"
71
+ ],
72
+ [
73
+ "Beets.",
74
+ "Beets who?",
75
+ "Beets me!"
76
+ ]
77
+ ];
78
+ class Knock extends _baseCommand.default {
79
+ async run() {
80
+ const promptOpts = {
81
+ type: "invisible",
82
+ name: "input"
83
+ };
84
+ await _enquirer.default.prompt({
85
+ ...promptOpts,
86
+ message: "Who's there?"
87
+ });
88
+ const randomIndex = Math.floor(Math.random() * JOKES.length);
89
+ const lines = JOKES[randomIndex];
90
+ for (const line of lines){
91
+ // eslint-disable-next-line no-await-in-loop
92
+ await _enquirer.default.prompt({
93
+ ...promptOpts,
94
+ message: line
95
+ });
96
+ }
97
+ this.log("");
98
+ this.log("Thank you for using Knock, and have a nice day! 🙂");
99
+ }
100
+ }
101
+ // Because, it's a secret :)
102
+ Knock.hidden = true;
@@ -20,7 +20,3 @@ class Ping extends _baseCommand.default {
20
20
  }
21
21
  // Deprecated, in favor of the whoami command.
22
22
  Ping.hidden = true;
23
- Ping.description = "Ping the Knock management API to verify access.";
24
- Ping.examples = [
25
- "<%= config.bin %> <%= command.id %>"
26
- ];
@@ -95,7 +95,7 @@ class TranslationGet extends _baseCommand.default {
95
95
  value: (0, _date.formatDate)(translation.created_at)
96
96
  }
97
97
  ];
98
- _core.CliUx.ux.table(rows, {
98
+ _core.ux.table(rows, {
99
99
  key: {
100
100
  header: "Translation",
101
101
  minWidth: 24
@@ -106,19 +106,23 @@ class TranslationGet extends _baseCommand.default {
106
106
  }
107
107
  });
108
108
  this.log("");
109
- _core.CliUx.ux.styledJSON(JSON.parse(translation.content));
109
+ _core.ux.styledJSON(JSON.parse(translation.content));
110
110
  }
111
111
  }
112
+ TranslationGet.summary = "Display a single translation from an environment.";
112
113
  TranslationGet.flags = {
113
114
  environment: _core.Flags.string({
114
- default: "development"
115
+ default: "development",
116
+ summary: "The environment to use."
115
117
  }),
116
- "hide-uncommitted-changes": _core.Flags.boolean()
118
+ "hide-uncommitted-changes": _core.Flags.boolean({
119
+ summary: "Hide any uncommitted changes."
120
+ })
117
121
  };
118
- TranslationGet.args = [
119
- {
120
- name: "translationRef",
122
+ TranslationGet.args = {
123
+ translationRef: _core.Args.string({
124
+ description: _translation.translationRefDescription,
121
125
  required: true
122
- }
123
- ];
126
+ })
127
+ };
124
128
  TranslationGet.enableJsonFlag = true;
@@ -79,7 +79,7 @@ class TranslationList extends _baseCommand.default {
79
79
  this.log(`‣ Showing ${entries.length} translations in \`${env}\` environment ${qualifier}\n`);
80
80
  /*
81
81
  * Translations list table
82
- */ _core.CliUx.ux.table(entries, {
82
+ */ _core.ux.table(entries, {
83
83
  ref: {
84
84
  header: "Ref",
85
85
  get: (entry)=>_translation.formatRef(entry)
@@ -116,11 +116,15 @@ class TranslationList extends _baseCommand.default {
116
116
  }
117
117
  }
118
118
  }
119
+ TranslationList.summary = "Display all translations for an environment.";
119
120
  TranslationList.flags = {
120
121
  environment: _core.Flags.string({
121
- default: "development"
122
+ default: "development",
123
+ summary: "The environment to use."
124
+ }),
125
+ "hide-uncommitted-changes": _core.Flags.boolean({
126
+ summary: "Hide any uncommitted changes."
122
127
  }),
123
- "hide-uncommitted-changes": _core.Flags.boolean(),
124
128
  ..._page.pageFlags
125
129
  };
126
130
  TranslationList.enableJsonFlag = true;
@@ -145,22 +145,31 @@ class TranslationPull extends _baseCommand.default {
145
145
  }, translations) : translations;
146
146
  }
147
147
  }
148
+ TranslationPull.summary = "Pull one or more translations from an environment into a local file system.";
148
149
  TranslationPull.flags = {
149
150
  environment: _core.Flags.string({
150
- default: "development"
151
+ default: "development",
152
+ summary: "The environment to use."
153
+ }),
154
+ all: _core.Flags.boolean({
155
+ summary: "Whether to pull all translations from the specified environment."
151
156
  }),
152
- all: _core.Flags.boolean(),
153
157
  "translations-dir": _flag.dirPath({
158
+ summary: "The target directory path to pull all translations into.",
154
159
  dependsOn: [
155
160
  "all"
156
161
  ]
157
162
  }),
158
- "hide-uncommitted-changes": _core.Flags.boolean(),
159
- force: _core.Flags.boolean()
163
+ "hide-uncommitted-changes": _core.Flags.boolean({
164
+ summary: "Hide any uncommitted changes."
165
+ }),
166
+ force: _core.Flags.boolean({
167
+ summary: "Remove the confirmation prompt."
168
+ })
160
169
  };
161
- TranslationPull.args = [
162
- {
163
- name: "translationRef",
170
+ TranslationPull.args = {
171
+ translationRef: _core.Args.string({
172
+ description: _translation.translationRefDescription,
164
173
  required: false
165
- }
166
- ];
174
+ })
175
+ };