@toa.io/cli 1.1.0-dev.5 → 1.1.0-dev.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/cli",
3
- "version": "1.1.0-dev.5",
3
+ "version": "1.1.0-dev.6",
4
4
  "description": "Toa CLI",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@toa.io/console": "0.6.0",
26
- "@toa.io/generic": "0.11.0-dev.5",
27
- "@toa.io/kubernetes": "0.7.5-dev.5",
28
- "@toa.io/norm": "1.0.2-dev.5",
29
- "@toa.io/yaml": "0.7.6-dev.5",
26
+ "@toa.io/generic": "0.11.0-dev.6",
27
+ "@toa.io/kubernetes": "0.7.5-dev.6",
28
+ "@toa.io/norm": "1.0.2-dev.6",
29
+ "@toa.io/yaml": "0.7.6-dev.6",
30
30
  "find-up": "5.0.0",
31
31
  "yargs": "17.6.2"
32
32
  },
33
- "gitHead": "76901bfb5b9f275cfd1c85178994246ec37fea1b"
33
+ "gitHead": "be4282cafd1b4ad548ef45cd32e0a103a0ea7053"
34
34
  }
@@ -6,7 +6,7 @@ const builder = (yargs) => {
6
6
  yargs
7
7
  .positional('target', {
8
8
  type: 'string',
9
- desc: 'Export target path'
9
+ desc: 'Path to export to'
10
10
  })
11
11
  .positional('environment', {
12
12
  type: 'string',
@@ -21,7 +21,7 @@ const builder = (yargs) => {
21
21
  })
22
22
  }
23
23
 
24
- exports.command = ['deployment <target> [environment]', 'dep']
24
+ exports.command = ['deployment <environment> <target>', 'dep']
25
25
  exports.desc = 'Export context deployment'
26
26
  exports.builder = builder
27
27
  exports.handler = dump
@@ -6,7 +6,11 @@ const builder = (yargs) => {
6
6
  yargs
7
7
  .positional('target', {
8
8
  type: 'string',
9
- desc: 'Export target path'
9
+ desc: 'Path to export to'
10
+ })
11
+ .positional('environment', {
12
+ type: 'string',
13
+ desc: 'Deployment environment'
10
14
  })
11
15
  .option('path', {
12
16
  alias: 'p',
@@ -17,7 +21,7 @@ const builder = (yargs) => {
17
21
  })
18
22
  }
19
23
 
20
- exports.command = ['images [target]', 'imgs']
24
+ exports.command = ['images <environment> <target>', 'imgs', 'img']
21
25
  exports.desc = 'Export docker image sources'
22
26
  exports.builder = builder
23
27
  exports.handler = prepare
@@ -7,7 +7,7 @@ const { context: find } = require('../../util/find')
7
7
 
8
8
  const prepare = async (argv) => {
9
9
  const context = find(argv.path)
10
- const operator = await boot.deployment(context)
10
+ const operator = await boot.deployment(context, argv.environment)
11
11
  const path = await operator.prepare(argv.target)
12
12
 
13
13
  console.log(path)