@toa.io/cli 0.2.0-dev.1 → 0.2.0-dev.2
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 +2 -2
- package/src/commands/deploy.js +3 -0
- package/src/handlers/deploy.js +5 -3
- package/src/program.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/cli",
|
|
3
|
-
"version": "0.2.0-dev.
|
|
3
|
+
"version": "0.2.0-dev.2",
|
|
4
4
|
"description": "Toa CLI",
|
|
5
5
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/toa-io/toa#readme",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"find-up": "5.0.0",
|
|
23
23
|
"yargs": "17.2.1"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "83480176c88640dd2bed2a775ce2d13b95341f19"
|
|
26
26
|
}
|
package/src/commands/deploy.js
CHANGED
package/src/handlers/deploy.js
CHANGED
|
@@ -5,10 +5,12 @@ const boot = require('@toa.io/boot')
|
|
|
5
5
|
const { context: find } = require('../util/find')
|
|
6
6
|
|
|
7
7
|
const deploy = async (argv) => {
|
|
8
|
-
const
|
|
9
|
-
const deployment = await boot.deployment(
|
|
8
|
+
const path = find(argv.path)
|
|
9
|
+
const deployment = await boot.deployment(path)
|
|
10
|
+
const images = await boot.images(path)
|
|
10
11
|
|
|
11
|
-
await
|
|
12
|
+
await images.push()
|
|
13
|
+
await deployment.install(argv['no-wait'] !== true)
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
exports.deploy = deploy
|
package/src/program.js
CHANGED
|
@@ -6,6 +6,9 @@ const { console } = require('@toa.io/gears')
|
|
|
6
6
|
const { version } = require('../package.json')
|
|
7
7
|
|
|
8
8
|
yargs(process.argv.slice(2))
|
|
9
|
+
.parserConfiguration({
|
|
10
|
+
'boolean-negation': false
|
|
11
|
+
})
|
|
9
12
|
.middleware((argv) => {
|
|
10
13
|
if (argv.log === undefined) argv.log = 'info'
|
|
11
14
|
|