@jscad/cli 2.2.25 → 2.2.26

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.26](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/cli@2.2.25...@jscad/cli@2.2.26) (2023-04-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cli:** corrected CLI help messages ([ba66b6c](https://github.com/jscad/OpenJSCAD.org/commit/ba66b6c855e253a520b2b4b151cf76228204139a))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.2.25](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/cli@2.2.24...@jscad/cli@2.2.25) (2022-11-26)
7
18
 
8
19
  **Note:** Version bump only for package @jscad/cli
package/cli.js CHANGED
@@ -3,23 +3,23 @@
3
3
 
4
4
  // NOTE: this will only run on Node > 6 or needs to be transpiled
5
5
 
6
- // == OpenJSCAD.org CLI interface, written by Rene K. Mueller <spiritdude@gmail.com>, Licensed under MIT License
6
+ // == JSCAD CLI interface, written by Rene K. Mueller <spiritdude@gmail.com>, Licensed under MIT License
7
7
  //
8
8
  // Description:
9
- // openjscad <file> [-of <format>] [-o <output>]
9
+ // jscad <file> [-of <format>] [-o <output>]
10
10
  // e.g.
11
- // openjscad test.jscad
12
- // openjscad test.jscad -o test.stl
13
- // openjscad test.jscad -o test.amf
14
- // openjscad test.jscad -o test.dxf
15
- // openjscad test.scad -o testFromSCAD.jscad
16
- // openjscad test.scad -o test.stl
17
- // openjscad test.stl -o test2.stl # reprocessed: stl -> jscad -> stl
18
- // openjscad test.amf -o test2.jscad
19
- // openjscad test.jscad -of amf
20
- // openjscad test.jscad -of dxf
21
- // openjscad test.jscad -of stl
22
- // openjscad name_plate.jscad --name "Just Me" --title "CEO" -o amf test.amf
11
+ // jscad test.jscad
12
+ // jscad test.jscad -o test.stl
13
+ // jscad test.jscad -o test.amf
14
+ // jscad test.jscad -o test.dxf
15
+ // jscad test.scad -o testFromSCAD.jscad
16
+ // jscad test.scad -o test.stl
17
+ // jscad test.stl -o test2.stl # reprocessed: stl -> jscad -> stl
18
+ // jscad test.amf -o test2.jscad
19
+ // jscad test.jscad -of amf
20
+ // jscad test.jscad -of dxf
21
+ // jscad test.jscad -of stl
22
+ // jscad name_plate.jscad --name "Just Me" --title "CEO" -o amf test.amf
23
23
  //
24
24
  const fs = require('fs')
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscad/cli",
3
- "version": "2.2.25",
3
+ "version": "2.2.26",
4
4
  "description": "Command Line Interface (CLI) for JSCAD",
5
5
  "homepage": "https://openjscad.xyz/",
6
6
  "repository": "https://github.com/jscad/OpenJSCAD.org",
@@ -36,9 +36,9 @@
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
38
  "@jscad/array-utils": "2.1.4",
39
- "@jscad/core": "2.6.5",
40
- "@jscad/io": "2.4.4",
41
- "@jscad/modeling": "2.11.0"
39
+ "@jscad/core": "2.6.6",
40
+ "@jscad/io": "2.4.5",
41
+ "@jscad/modeling": "2.11.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "ava": "3.15.0",
@@ -49,5 +49,5 @@
49
49
  "url": "https://opencollective.com/openjscad",
50
50
  "logo": "https://opencollective.com/openjscad/logo.txt"
51
51
  },
52
- "gitHead": "5899622c5ffc640001da7261d7c06a1223064ccc"
52
+ "gitHead": "4313974b50957018d2edd010e3a251f59bea46a4"
53
53
  }
package/src/env.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const version = require('../package.json').version
2
2
 
3
3
  const env = () => {
4
- let env = 'OpenJSCAD ' + version
4
+ let env = 'JSCAD ' + version
5
5
  if (typeof document !== 'undefined') {
6
6
  const w = document.defaultView
7
7
  env = env + ' [' + w.navigator.userAgent + ']'
package/src/parseArgs.js CHANGED
@@ -13,7 +13,7 @@ const parseArgs = (args) => {
13
13
  // hint: https://github.com/substack/node-optimist
14
14
  // https://github.com/visionmedia/commander.js
15
15
  if (args.length < 1) {
16
- console.log('USAGE:\n\nopenjscad [-v] <file> [-of <format>] [-o <output>]')
16
+ console.log('USAGE:\n\njscad [-v] <file> [-of <format>] [-o <output>]')
17
17
  console.log(`\t<file> :\tinput (Supported types: folder, .${inputExtensions.join(', .')})`)
18
18
  console.log(`\t<output>:\toutput (Supported types: folder, .${outputExtensions.join(', .')})`)
19
19
  console.log(`\t<format>:\t${outputFormats.join(', ')}`)