@appthen/cli 1.0.21 → 1.0.23

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/main.js CHANGED
@@ -51,6 +51,23 @@ program
51
51
  process.exit();
52
52
  });
53
53
 
54
+ program
55
+ .command('release', { isDefault: false })
56
+ .description('release website and upload to cdn / ftp / oss / cloud')
57
+ .requiredOption('-c, --cloud <cloud>', 'cloud type')
58
+ .action(function doGenerate(command) {
59
+ var options = command?.opts?.() || {};
60
+ if (options.cwd) {
61
+ process.chdir(options.cwd);
62
+ }
63
+
64
+ require('../dist/index.js')
65
+ .releaseMaterial(options)
66
+ .then((retCode) => {
67
+ process.exit(retCode);
68
+ });
69
+ });
70
+
54
71
  program
55
72
  .command('release-material', { isDefault: false })
56
73
  .description('release material and upload to cdn')