@great-arrow/cli 0.1.0 → 0.1.2
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/LICENSE +21 -0
- package/dist/index.js +23 -17
- package/package.json +13 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Great Arrow Digital
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
2
4
|
var __create = Object.create;
|
|
3
5
|
var __defProp = Object.defineProperty;
|
|
4
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -12,7 +14,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
12
14
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
15
|
});
|
|
14
16
|
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
-
|
|
17
|
+
try {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
} catch (e) {
|
|
20
|
+
throw mod = 0, e;
|
|
21
|
+
}
|
|
16
22
|
};
|
|
17
23
|
var __copyProps = (to, from, except, desc) => {
|
|
18
24
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -31,9 +37,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
37
|
mod
|
|
32
38
|
));
|
|
33
39
|
|
|
34
|
-
// node_modules
|
|
40
|
+
// node_modules/commander/lib/error.js
|
|
35
41
|
var require_error = __commonJS({
|
|
36
|
-
"node_modules
|
|
42
|
+
"node_modules/commander/lib/error.js"(exports) {
|
|
37
43
|
var CommanderError2 = class extends Error {
|
|
38
44
|
/**
|
|
39
45
|
* Constructs the CommanderError class
|
|
@@ -66,9 +72,9 @@ var require_error = __commonJS({
|
|
|
66
72
|
}
|
|
67
73
|
});
|
|
68
74
|
|
|
69
|
-
// node_modules
|
|
75
|
+
// node_modules/commander/lib/argument.js
|
|
70
76
|
var require_argument = __commonJS({
|
|
71
|
-
"node_modules
|
|
77
|
+
"node_modules/commander/lib/argument.js"(exports) {
|
|
72
78
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
73
79
|
var Argument2 = class {
|
|
74
80
|
/**
|
|
@@ -193,9 +199,9 @@ var require_argument = __commonJS({
|
|
|
193
199
|
}
|
|
194
200
|
});
|
|
195
201
|
|
|
196
|
-
// node_modules
|
|
202
|
+
// node_modules/commander/lib/help.js
|
|
197
203
|
var require_help = __commonJS({
|
|
198
|
-
"node_modules
|
|
204
|
+
"node_modules/commander/lib/help.js"(exports) {
|
|
199
205
|
var { humanReadableArgName } = require_argument();
|
|
200
206
|
var Help2 = class {
|
|
201
207
|
constructor() {
|
|
@@ -762,9 +768,9 @@ ${itemIndentStr}`);
|
|
|
762
768
|
}
|
|
763
769
|
});
|
|
764
770
|
|
|
765
|
-
// node_modules
|
|
771
|
+
// node_modules/commander/lib/option.js
|
|
766
772
|
var require_option = __commonJS({
|
|
767
|
-
"node_modules
|
|
773
|
+
"node_modules/commander/lib/option.js"(exports) {
|
|
768
774
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
769
775
|
var Option2 = class {
|
|
770
776
|
/**
|
|
@@ -1063,9 +1069,9 @@ var require_option = __commonJS({
|
|
|
1063
1069
|
}
|
|
1064
1070
|
});
|
|
1065
1071
|
|
|
1066
|
-
// node_modules
|
|
1072
|
+
// node_modules/commander/lib/suggestSimilar.js
|
|
1067
1073
|
var require_suggestSimilar = __commonJS({
|
|
1068
|
-
"node_modules
|
|
1074
|
+
"node_modules/commander/lib/suggestSimilar.js"(exports) {
|
|
1069
1075
|
var maxDistance = 3;
|
|
1070
1076
|
function editDistance(a, b) {
|
|
1071
1077
|
if (Math.abs(a.length - b.length) > maxDistance)
|
|
@@ -1143,9 +1149,9 @@ var require_suggestSimilar = __commonJS({
|
|
|
1143
1149
|
}
|
|
1144
1150
|
});
|
|
1145
1151
|
|
|
1146
|
-
// node_modules
|
|
1152
|
+
// node_modules/commander/lib/command.js
|
|
1147
1153
|
var require_command = __commonJS({
|
|
1148
|
-
"node_modules
|
|
1154
|
+
"node_modules/commander/lib/command.js"(exports) {
|
|
1149
1155
|
var EventEmitter = __require("node:events").EventEmitter;
|
|
1150
1156
|
var childProcess = __require("node:child_process");
|
|
1151
1157
|
var path = __require("node:path");
|
|
@@ -3302,9 +3308,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3302
3308
|
}
|
|
3303
3309
|
});
|
|
3304
3310
|
|
|
3305
|
-
// node_modules
|
|
3311
|
+
// node_modules/commander/index.js
|
|
3306
3312
|
var require_commander = __commonJS({
|
|
3307
|
-
"node_modules
|
|
3313
|
+
"node_modules/commander/index.js"(exports) {
|
|
3308
3314
|
var { Argument: Argument2 } = require_argument();
|
|
3309
3315
|
var { Command: Command2 } = require_command();
|
|
3310
3316
|
var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
@@ -3324,7 +3330,7 @@ var require_commander = __commonJS({
|
|
|
3324
3330
|
}
|
|
3325
3331
|
});
|
|
3326
3332
|
|
|
3327
|
-
// node_modules
|
|
3333
|
+
// node_modules/commander/esm.mjs
|
|
3328
3334
|
var import_index = __toESM(require_commander(), 1);
|
|
3329
3335
|
var {
|
|
3330
3336
|
program,
|
|
@@ -5996,7 +6002,7 @@ if (nodeVersion < 20) {
|
|
|
5996
6002
|
console.error(" Upgrade Node.js: https://nodejs.org/");
|
|
5997
6003
|
process.exit(1);
|
|
5998
6004
|
}
|
|
5999
|
-
var VERSION = "0.1.
|
|
6005
|
+
var VERSION = "0.1.2";
|
|
6000
6006
|
var program2 = new Command().name("gad").description("Great Arrow Digital CLI \u2014 terminal access to the GAD platform").version(VERSION, "-v, --version").option("--json", "Output as JSON").option("--quiet", "Suppress decorative output").option("--no-color", "Disable color output");
|
|
6001
6007
|
program2.addCommand(login_default);
|
|
6002
6008
|
program2.addCommand(logoutCommand);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@great-arrow/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Great Arrow Digital CLI tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"gad": "
|
|
7
|
+
"gad": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"engines": {
|
|
10
10
|
"node": ">=20.0.0"
|
|
@@ -32,5 +32,15 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"license": "
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/Clapptastic/great-arrow-digital.git",
|
|
39
|
+
"directory": "packages/cli"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://www.greatarrowdigital.com",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://www.greatarrowdigital.com/support"
|
|
44
|
+
},
|
|
45
|
+
"author": "Great Arrow Digital <support@greatarrowdigital.com>"
|
|
36
46
|
}
|