@argos-ci/cli 4.0.4 → 4.1.0

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -68,6 +68,11 @@ function uploadCommand(program2) {
68
68
  "--threshold <number>",
69
69
  "Sensitivity threshold between 0 and 1. The higher the threshold, the less sensitive the diff will be. Default to 0.5"
70
70
  ).env("ARGOS_THRESHOLD")
71
+ ).addOption(
72
+ new Option2(
73
+ "--subset",
74
+ "Whether this build contains only a subset of screenshots.\nThis is useful when a build is created from an incomplete test suite where some tests are skipped."
75
+ ).env("ARGOS_SUBSET")
71
76
  ).action(async (directory, options) => {
72
77
  const spinner = ora("Uploading screenshots").start();
73
78
  try {
@@ -99,7 +104,8 @@ function uploadCommand(program2) {
99
104
  referenceBranch: options.referenceBranch,
100
105
  referenceCommit: options.referenceCommit,
101
106
  mode: options.mode,
102
- threshold: options.threshold
107
+ threshold: options.threshold,
108
+ subset: options.subset
103
109
  });
104
110
  spinner.succeed(`Build created: ${result.build.url}`);
105
111
  } catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/cli",
3
3
  "description": "Command-line (CLI) for visual testing with Argos.",
4
- "version": "4.0.4",
4
+ "version": "4.1.0",
5
5
  "bin": {
6
6
  "argos": "./bin/argos-cli.js"
7
7
  },
@@ -34,9 +34,9 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "@argos-ci/core": "5.0.4",
38
- "commander": "^14.0.2",
39
- "ora": "^9.0.0",
37
+ "@argos-ci/core": "5.1.0",
38
+ "commander": "^14.0.3",
39
+ "ora": "^9.1.0",
40
40
  "update-notifier": "^7.3.1"
41
41
  },
42
42
  "scripts": {
@@ -46,5 +46,5 @@
46
46
  "check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
47
47
  "lint": "eslint ."
48
48
  },
49
- "gitHead": "6fdd2406c03f3eea78931dc5f221cb438440c620"
49
+ "gitHead": "6887164dc0ccd5b2a3dd1d7d9e778cdbbdd2d534"
50
50
  }