@argos-ci/cli 0.5.1 → 0.6.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.mjs +4 -2
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ 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
11
  program.name(pkg.name).description("Interact with and upload screenshots to argos-ci.com via command line.").version(pkg.version);
12
- program.command("upload").argument("<directory>", "Directory to upload").description("Upload screenshots to argos-ci.com").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")').option("--token <token>", "Repository token").option("--build-name <string>", "Name of the build, in case you want to run multiple Argos builds in a single CI job").option("--parallel", "Enable parallel mode. Run multiple Argos builds and combine them at the end").option("--parallel-total <number>", "The number of parallel nodes being ran").option("--parallel-nonce <string>", "A unique ID for this parallel build").action(async (directory, options)=>{
12
+ program.command("upload").argument("<directory>", "Directory to upload").description("Upload screenshots to argos-ci.com").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")').option("--token <token>", "Repository token").option("--build-name <string>", "Name of the build, in case you want to run multiple Argos builds in a single CI job").option("--parallel", "Enable parallel mode. Run multiple Argos builds and combine them at the end").option("--parallel-total <number>", "The number of parallel nodes being ran").option("--parallel-nonce <string>", "A unique ID for this parallel build").option("--reference-branch <string>", "Branch used as baseline for screenshot comparison").option("--reference-commit <string>", "Commit used as baseline for screenshot comparison").action(async (directory, options)=>{
13
13
  const spinner = ora("Uploading screenshots").start();
14
14
  try {
15
15
  const result = await upload({
@@ -22,7 +22,9 @@ program.command("upload").argument("<directory>", "Directory to upload").descrip
22
22
  parallel: options.parallel ? {
23
23
  nonce: options.parallelNonce,
24
24
  total: options.parallelTotal
25
- } : false
25
+ } : false,
26
+ referenceBranch: options.referenceBranch,
27
+ referenceCommit: options.referenceCommit
26
28
  });
27
29
  spinner.succeed(`Build created: ${result.build.url}`);
28
30
  } catch (error) {
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": "0.5.1",
4
+ "version": "0.6.0",
5
5
  "bin": {
6
6
  "argos": "./bin/argos-cli.js"
7
7
  },
@@ -40,7 +40,7 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@argos-ci/core": "^0.11.1",
43
+ "@argos-ci/core": "^0.12.0",
44
44
  "commander": "^11.0.0",
45
45
  "ora": "^7.0.1",
46
46
  "update-notifier": "^6.0.2"
@@ -49,5 +49,5 @@
49
49
  "rollup": "^3.29.0",
50
50
  "rollup-plugin-swc3": "^0.10.1"
51
51
  },
52
- "gitHead": "8e3c44d658f3abd5ce3ac1bc829e2754974a2125"
52
+ "gitHead": "e58b26f5c3a9998d89353c4435aa742b5ae3d244"
53
53
  }