@emulsify/cli 1.8.0 → 1.9.0

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15,34 +15,42 @@ commander_1.program
15
15
  .enablePositionalOptions()
16
16
  .option('-c --checkout <commit/branch/tag>', 'Commit, branch or tag of the base repository that should be checked out');
17
17
  commander_1.program
18
- .command('init <name> [path]', 'Initialize an Emulsify project', {
18
+ .command('init <name> [path]', {
19
19
  isDefault: true,
20
20
  })
21
+ .description('Initialize an Emulsify project')
21
22
  .option('-m --machineName <machineName>', 'Machine-friendly name of the project you are initializing. If not provided, this will be automatically generated.')
22
23
  .option('-s --starter <repository>', 'Git repository of the Emulsify starter you would like to use, such as the Emulsify Drupal theme: https://github.com/emulsify-ds/emulsify-drupal.git')
23
24
  .option('-c --checkout <commit/branch/tag>', 'Commit, branch or tag of the base repository that should be checked out')
24
25
  .option('-p --platform <drupal/wordpress/etc>', 'Name of the platform Emulsify is being within. In some cases, Emulsify is able to automatically detect this. If it is not, Emulsify will prompt you to specify.')
25
26
  .action((0, withProgressBar_1.default)(init_1.default));
26
- const system = commander_1.program.command('system', 'Parent command that contains sub-commands pertaining to systems');
27
+ const system = commander_1.program
28
+ .command('system')
29
+ .description('Parent command that contains sub-commands pertaining to systems');
27
30
  system
28
- .command('list', 'Lists all of the available systems that Emulsify supports out-of-the-box')
31
+ .command('list')
32
+ .description('Lists all of the available systems that Emulsify supports out-of-the-box')
29
33
  .alias('ls')
30
34
  .action(systemList_1.default);
31
35
  system
32
- .command('install [name]', 'Install a system within an Emulsify project. You must specify either the name of an out-of-the-box system (such as compound), or a link to a git repository containing the system you want to install')
36
+ .command('install [name]')
37
+ .description('Install a system within an Emulsify project. You must specify either the name of an out-of-the-box system (such as compound), or a link to a git repository containing the system you want to install')
33
38
  .option('-r --repository <repository>', 'Git repository containing the system you would like to install')
34
39
  .option('-c --checkout <commit/branch/tag>', 'Commit, branch or tag of the base repository that should be checked out. MUST be provided if you are passing along a repository (-r or --repository). Tags or commit hashes are strongly preferable, because you want to ensure that you are using the same version of the system every time you install components, etc')
35
40
  .option('-a --all', 'Use this to install all available components within the specified system. Without this flag, only the required system components will be installed.')
36
41
  .action(systemInstall_1.default);
37
42
  const component = commander_1.program.command('component', 'Parent command that contains sub-commands pertaining to components');
38
43
  component
39
- .command('list', 'Lists all of the components that are available for installation within your project based on the system and variant you selected')
44
+ .command('list')
45
+ .description('Lists all of the components that are available for installation within your project based on the system and variant you selected')
40
46
  .alias('ls')
41
47
  .action(componentList_1.default);
42
48
  component
43
- .command('install [name]', "Install a component from within the current project's system and variant")
49
+ .command('install [name]')
50
+ .description("Install a component from within the current project's system and variant")
44
51
  .option('-f --force', 'Use this to overwrite a component that is already installed')
45
52
  .option('-a --all', 'Use this to install all available components, rather than specifying a single component to install')
46
53
  .alias('i')
47
54
  .action(componentInstall_1.default);
55
+ commander_1.program.version(require('./package.json').version);
48
56
  void commander_1.program.parseAsync(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/cli",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Command line interface for Emulsify",
5
5
  "repository": "git@github.com:emulsify-ds/emulsify-cli.git",
6
6
  "author": "Patrick Coffey <patrickcoffey48@gmail.com>",