@toa.io/cli 0.20.0-dev.3 → 0.20.0-dev.4

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": "0.20.0-dev.3",
3
+ "version": "0.20.0-dev.4",
4
4
  "description": "Toa CLI",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -22,13 +22,13 @@
22
22
  "@toa.io/runtime": "*"
23
23
  },
24
24
  "dependencies": {
25
- "@toa.io/console": "0.20.0-dev.3",
26
- "@toa.io/generic": "0.20.0-dev.3",
27
- "@toa.io/kubernetes": "0.20.0-dev.3",
28
- "@toa.io/norm": "0.20.0-dev.3",
29
- "@toa.io/yaml": "0.20.0-dev.3",
25
+ "@toa.io/console": "0.20.0-dev.4",
26
+ "@toa.io/generic": "0.20.0-dev.4",
27
+ "@toa.io/kubernetes": "0.20.0-dev.4",
28
+ "@toa.io/norm": "0.20.0-dev.4",
29
+ "@toa.io/yaml": "0.20.0-dev.4",
30
30
  "find-up": "5.0.0",
31
31
  "yargs": "17.6.2"
32
32
  },
33
- "gitHead": "3eabf45761f4cf211e1e4c331933ec60b4a828a7"
33
+ "gitHead": "a62b12d77a405d18eb92e879672455b6fb2fd9f2"
34
34
  }
package/readme.md CHANGED
@@ -43,8 +43,9 @@ format.
43
43
  <dt><code>toa replay [paths...]</code></dt>
44
44
  <dd>
45
45
  <code>paths</code> Path(s) to component(s) or a context (default <code>.</code>).<br/>
46
- <code>--integration</code> Replay integration tests only.<br/>
47
46
  <code>--component &lt;id&gt;</code> Replay samples for a specified component <code>id</code>.<br/>
47
+ <code>--integration</code> Replay integration tests only.<br/>
48
+ <code>--autonomous</code> Replay autonomous tests only.<br/>
48
49
  <code>--operation &lt;name&gt;</code> Replay samples for specified operation.<br/>
49
50
  <code>--title &lt;regexp&gt;</code> Regexp to match sample titles.<br/>
50
51
  <code>--dock</code> Run in Docker. Applicable only for component samples.
@@ -21,6 +21,12 @@ const builder = (yargs) => {
21
21
  group: 'Command options:',
22
22
  describe: 'Replay samples for specified component'
23
23
  })
24
+ .option('autonomous', {
25
+ alias: 'a',
26
+ type: 'boolean',
27
+ group: 'Command options:',
28
+ describe: 'Replay autonomous tests only'
29
+ })
24
30
  .option('integration', {
25
31
  alias: 'i',
26
32
  type: 'boolean',
@@ -7,7 +7,7 @@ const find = require('../util/find')
7
7
  const docker = require('./docker')
8
8
 
9
9
  /**
10
- * @param {Record<string, string | boolean>} argv
10
+ * @param {Record<string, string | string[] | boolean>} argv
11
11
  * @return {Promise<void>}
12
12
  */
13
13
  async function replay (argv) {
@@ -21,6 +21,7 @@ async function replay (argv) {
21
21
  /** @type {toa.samples.suite.Options} */
22
22
  const options = {
23
23
  component: argv.component,
24
+ autonomous: argv.autonomous,
24
25
  integration: argv.integration,
25
26
  operation: argv.operation,
26
27
  title: argv.title,