@toa.io/cli 1.0.0-alpha.70 → 1.0.0-alpha.72

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.0.0-alpha.70",
3
+ "version": "1.0.0-alpha.72",
4
4
  "description": "Toa CLI",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -25,7 +25,7 @@
25
25
  "@toa.io/generic": "1.0.0-alpha.63",
26
26
  "@toa.io/kubernetes": "1.0.0-alpha.63",
27
27
  "@toa.io/norm": "1.0.0-alpha.67",
28
- "@toa.io/operations": "1.0.0-alpha.70",
28
+ "@toa.io/operations": "1.0.0-alpha.72",
29
29
  "@toa.io/yaml": "1.0.0-alpha.63",
30
30
  "dotenv": "16.1.1",
31
31
  "find-up": "5.0.0",
@@ -34,5 +34,5 @@
34
34
  "paseto": "3.1.4",
35
35
  "yargs": "17.6.2"
36
36
  },
37
- "gitHead": "3fe12fa8b6a82fecc9205e9f6dd4b39e03184c7b"
37
+ "gitHead": "919b587dfcdfab40d18f0f8bd24b34d8107f811a"
38
38
  }
@@ -34,6 +34,12 @@ const builder = (yargs) => {
34
34
  boolean: true,
35
35
  desc: 'Wait for deployment ready state'
36
36
  })
37
+ .option('timeout', {
38
+ alias: 't',
39
+ group: 'Command options:',
40
+ type: 'string',
41
+ desc: 'Deployment timeout'
42
+ })
37
43
  }
38
44
 
39
45
  exports.command = 'deploy [environment]'
@@ -25,6 +25,7 @@ const deploy = async (argv) => {
25
25
 
26
26
  if (argv.namespace !== undefined) options.namespace = argv.namespace
27
27
  if (argv.wait === true) options.wait = true
28
+ if (argv.timeout !== undefined) options.timeout = argv.timeout
28
29
 
29
30
  await operator.install(options)
30
31
  }
package/types/deploy.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  declare namespace toa.cli.deploy {
2
2
 
3
- interface Arguments {
4
- path: string
5
- environment?: string
6
- namespace?: string
7
- dry: boolean
8
- wait: boolean
9
- }
3
+ interface Arguments {
4
+ path: string
5
+ environment?: string
6
+ namespace?: string
7
+ dry: boolean
8
+ wait: boolean
9
+ timeout: string
10
+ }
10
11
  }