@gxp-dev/tools 2.0.17 → 2.0.19

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/bin/lib/cli.js CHANGED
@@ -23,6 +23,7 @@ const {
23
23
  extensionBuildCommand,
24
24
  extensionInstallCommand,
25
25
  extractConfigCommand,
26
+ addDependencyCommand,
26
27
  } = require("./commands");
27
28
 
28
29
  // Load global configuration
@@ -287,6 +288,20 @@ yargs
287
288
  },
288
289
  extractConfigCommand
289
290
  )
291
+ .command(
292
+ "add-dependency",
293
+ "Add an API dependency to app-manifest.json via interactive wizard",
294
+ {
295
+ env: {
296
+ describe: "API environment to load specs from",
297
+ type: "string",
298
+ default: "staging",
299
+ choices: ["production", "staging", "testing", "develop", "local"],
300
+ alias: "e",
301
+ },
302
+ },
303
+ addDependencyCommand
304
+ )
290
305
  .demandCommand(1, "Please provide a valid command")
291
306
  .help("h")
292
307
  .alias("h", "help")