ag-awsauth 0.0.45 → 0.0.46

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.
@@ -44,7 +44,7 @@ function chooseAppInstance(ai, args) {
44
44
  exports.chooseAppInstance = chooseAppInstance;
45
45
  function readArguments() {
46
46
  return __awaiter(this, void 0, void 0, function* () {
47
- const { applicationfilter, verbose, wipe, config } = yield (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
47
+ const { version, applicationfilter, verbose, wipe, config } = yield (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
48
48
  .help('h')
49
49
  .alias('h', 'help')
50
50
  .option('applicationfilter', {
@@ -69,9 +69,14 @@ function readArguments() {
69
69
  type: 'boolean',
70
70
  description: 'Configure application settings',
71
71
  default: false,
72
+ })
73
+ .option('version', {
74
+ type: 'boolean',
75
+ description: 'Show application version',
76
+ default: false,
72
77
  })
73
78
  .parse();
74
- return { applicationfilter, verbose, wipe, config };
79
+ return { applicationfilter, verbose, wipe, config, version };
75
80
  });
76
81
  }
77
82
  exports.readArguments = readArguments;
package/dist/index.js CHANGED
@@ -45,6 +45,12 @@ function main(args) {
45
45
  //
46
46
  }
47
47
  });
48
+ if (args.version) {
49
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
50
+ const p = require('../../package.json');
51
+ (0, log_1.warn)('version=' + p.version);
52
+ return;
53
+ }
48
54
  if (args.config) {
49
55
  (0, log_1.info)('running config');
50
56
  (0, config_1.runConfig)();
package/dist/types.d.ts CHANGED
@@ -52,4 +52,5 @@ export interface IApplicationArgs {
52
52
  verbose: boolean;
53
53
  wipe: boolean;
54
54
  config: boolean;
55
+ version: boolean;
55
56
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "andrei gec (andreigec@hotmail.com)",
6
6
  "license": "ISC",
7
7
  "private": false,
8
- "version": "0.0.45",
8
+ "version": "0.0.46",
9
9
  "preferGlobal": true,
10
10
  "scripts": {
11
11
  "format": "eslint --ext .ts,.tsx ./src --fix",