@argos-ci/cli 2.3.0 → 2.3.2-alpha.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/dist/index.mjs +2 -2
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -8,8 +8,8 @@ import ora from 'ora';
|
|
|
8
8
|
const __dirname = fileURLToPath(new URL(".", import.meta.url));
|
|
9
9
|
const rawPkg = await readFile(resolve(__dirname, "..", "package.json"), "utf8");
|
|
10
10
|
const pkg = JSON.parse(rawPkg);
|
|
11
|
-
program.name(pkg.name).description("Interact with and upload screenshots to
|
|
12
|
-
program.command("upload").argument("<directory>", "Directory to upload").description("Upload screenshots to
|
|
11
|
+
program.name(pkg.name).description("Interact with and upload screenshots to Argos via command line.").version(pkg.version);
|
|
12
|
+
program.command("upload").argument("<directory>", "Directory to upload").description("Upload screenshots to Argos").option("-f, --files <patterns...>", "One or more globs matching image file paths to upload", "**/*.{png,jpg,jpeg}").option("-i, --ignore <patterns...>", 'One or more globs matching image file paths to ignore (ex: "**/*.png **/diff.jpg")').addOption(new Option("--token <token>", "Repository token").env("ARGOS_TOKEN")).addOption(new Option("--build-name <string>", "Name of the build, in case you want to run multiple Argos builds in a single CI job").env("ARGOS_BUILD_NAME")).addOption(new Option("--mode <string>", "Mode of comparison applied. CI for visual regression testing, monitoring for visual monitoring.").default("ci").choices([
|
|
13
13
|
"ci",
|
|
14
14
|
"monitoring"
|
|
15
15
|
]).env("ARGOS_MODE")).addOption(new Option("--parallel", "Enable parallel mode. Run multiple Argos builds and combine them at the end").env("ARGOS_PARALLEL")).addOption(new Option("--parallel-total <number>", "The number of parallel nodes being ran").env("ARGOS_PARALLEL_TOTAL")).addOption(new Option("--parallel-nonce <string>", "A unique ID for this parallel build").env("ARGOS_PARALLEL_NONCE")).addOption(new Option("--parallel-index <number>", "The index of the parallel node being ran").env("ARGOS_PARALLEL_INDEX")).addOption(new Option("--reference-branch <string>", "Branch used as baseline for screenshot comparison").env("ARGOS_REFERENCE_BRANCH")).addOption(new Option("--reference-commit <string>", "Commit used as baseline for screenshot comparison").env("ARGOS_REFERENCE_COMMIT")).addOption(new Option("--threshold <number>", "Sensitivity threshold between 0 and 1. The higher the threshold, the less sensitive the diff will be. Default to 0.5").env("ARGOS_THRESHOLD")).action(async (directory, options)=>{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/cli",
|
|
3
3
|
"description": "Visual testing solution to avoid visual regression. Argos CLI is used to interact with and upload screenshots to argos-ci.com via command line.",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.2-alpha.4+4b6e8a3",
|
|
5
5
|
"bin": {
|
|
6
6
|
"argos": "./bin/argos-cli.js"
|
|
7
7
|
},
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@argos-ci/core": "2.4.
|
|
39
|
-
"commander": "^12.
|
|
38
|
+
"@argos-ci/core": "2.4.2-alpha.4+4b6e8a3",
|
|
39
|
+
"commander": "^12.1.0",
|
|
40
40
|
"ora": "^8.0.1",
|
|
41
|
-
"update-notifier": "^7.
|
|
41
|
+
"update-notifier": "^7.2.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"prebuild": "rm -rf dist",
|
|
45
45
|
"build": "rollup -c",
|
|
46
46
|
"e2e": "node e2e/upload.js"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4b6e8a36627d466e65859396ec6cfee717ba7c7b"
|
|
49
49
|
}
|