mage-remote-run 0.7.0 → 0.8.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.
@@ -13,7 +13,21 @@ const program = new Command();
13
13
  program
14
14
  .name('mage-remote-run')
15
15
  .description('The remote swiss army knife for Magento Open Source, Mage-OS, Adobe Commerce')
16
- .version(pkg.version);
16
+ .version(pkg.version)
17
+ .configureHelp({
18
+ visibleCommands: (cmd) => {
19
+ const commands = cmd.commands.filter(c => !c._hidden);
20
+ return commands.sort((a, b) => {
21
+ if (a.name() === 'connection') return -1;
22
+ if (b.name() === 'connection') return 1;
23
+ return a.name().localeCompare(b.name());
24
+ });
25
+ },
26
+ subcommandTerm: (cmd) => chalk.cyan(cmd.name()),
27
+ subcommandDescription: (cmd) => chalk.gray(cmd.description()),
28
+ optionTerm: (option) => chalk.yellow(option.flags),
29
+ optionDescription: (option) => chalk.gray(option.description)
30
+ });
17
31
 
18
32
 
19
33
 
@@ -7,7 +7,7 @@ import inquirer from 'inquirer';
7
7
  import chalk from 'chalk';
8
8
 
9
9
  export function registerConnectionCommands(program) {
10
- const connections = program.command('connection').description('Manage connection profiles');
10
+ const connections = program.command('connection').description('Manage mage-remote-run connection profiles');
11
11
 
12
12
  connections.command('add')
13
13
  .description('Configure a new connection profile')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mage-remote-run",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "The remote swiss army knife for Magento Open Source, Mage-OS, Adobe Commerce",
5
5
  "main": "index.js",
6
6
  "scripts": {