@sonisoft/now-sdk-ext-cli 1.1.0-alpha.0 → 1.1.0-alpha.1
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/README.md
CHANGED
|
@@ -29,7 +29,7 @@ $ npm install -g @sonisoft/now-sdk-ext-cli
|
|
|
29
29
|
$ nex COMMAND
|
|
30
30
|
running command...
|
|
31
31
|
$ nex (--version)
|
|
32
|
-
@sonisoft/now-sdk-ext-cli/1.1.0-alpha.
|
|
32
|
+
@sonisoft/now-sdk-ext-cli/1.1.0-alpha.1 darwin-arm64 node-v22.6.0
|
|
33
33
|
$ nex --help [COMMAND]
|
|
34
34
|
USAGE
|
|
35
35
|
$ nex COMMAND
|
|
@@ -38,6 +38,7 @@ USAGE
|
|
|
38
38
|
<!-- usagestop -->
|
|
39
39
|
# Commands
|
|
40
40
|
<!-- commands -->
|
|
41
|
+
* [`nex app`](#nex-app)
|
|
41
42
|
* [`nex exec SCOPE FILE`](#nex-exec-scope-file)
|
|
42
43
|
* [`nex help [COMMAND]`](#nex-help-command)
|
|
43
44
|
* [`nex plugins`](#nex-plugins)
|
|
@@ -51,6 +52,35 @@ USAGE
|
|
|
51
52
|
* [`nex plugins unlink [PLUGIN]`](#nex-plugins-unlink-plugin)
|
|
52
53
|
* [`nex plugins update`](#nex-plugins-update)
|
|
53
54
|
|
|
55
|
+
## `nex app`
|
|
56
|
+
|
|
57
|
+
Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw console output that Scripts - Background outputs to the browser in order to support the execution and result being piped to another command.
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
USAGE
|
|
61
|
+
$ nex app [--json] [-a <value>] [--log-level debug|warn|error|info|trace] [-u] [-i <value>] [-s <value>]
|
|
62
|
+
|
|
63
|
+
FLAGS
|
|
64
|
+
-a, --auth=<value> Auth alias to use.
|
|
65
|
+
-i, --applicationId=<value> Application sys_id
|
|
66
|
+
-s, --scope=<value> Scope of application.
|
|
67
|
+
-u, --uninstall Uninstall the app
|
|
68
|
+
|
|
69
|
+
GLOBAL FLAGS
|
|
70
|
+
--json Format output as json.
|
|
71
|
+
--log-level=<option> [default: info] Specify level for logging.
|
|
72
|
+
<options: debug|warn|error|info|trace>
|
|
73
|
+
|
|
74
|
+
DESCRIPTION
|
|
75
|
+
Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw
|
|
76
|
+
console output that Scripts - Background outputs to the browser in order to support the execution and result being
|
|
77
|
+
piped to another command.
|
|
78
|
+
|
|
79
|
+
EXAMPLES
|
|
80
|
+
$ nex app exec global test.js --auth sn_alias
|
|
81
|
+
test
|
|
82
|
+
```
|
|
83
|
+
|
|
54
84
|
## `nex exec SCOPE FILE`
|
|
55
85
|
|
|
56
86
|
Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw console output that Scripts - Background outputs to the browser in order to support the execution and result being piped to another command.
|
|
@@ -99,7 +129,7 @@ DESCRIPTION
|
|
|
99
129
|
Display help for nex.
|
|
100
130
|
```
|
|
101
131
|
|
|
102
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.
|
|
132
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.31/src/commands/help.ts)_
|
|
103
133
|
|
|
104
134
|
## `nex plugins`
|
|
105
135
|
|
|
@@ -122,7 +152,7 @@ EXAMPLES
|
|
|
122
152
|
$ nex plugins
|
|
123
153
|
```
|
|
124
154
|
|
|
125
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
155
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/index.ts)_
|
|
126
156
|
|
|
127
157
|
## `nex plugins add PLUGIN`
|
|
128
158
|
|
|
@@ -196,7 +226,7 @@ EXAMPLES
|
|
|
196
226
|
$ nex plugins inspect myplugin
|
|
197
227
|
```
|
|
198
228
|
|
|
199
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
229
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/inspect.ts)_
|
|
200
230
|
|
|
201
231
|
## `nex plugins install PLUGIN`
|
|
202
232
|
|
|
@@ -245,7 +275,7 @@ EXAMPLES
|
|
|
245
275
|
$ nex plugins install someuser/someplugin
|
|
246
276
|
```
|
|
247
277
|
|
|
248
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
278
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/install.ts)_
|
|
249
279
|
|
|
250
280
|
## `nex plugins link PATH`
|
|
251
281
|
|
|
@@ -265,6 +295,7 @@ FLAGS
|
|
|
265
295
|
|
|
266
296
|
DESCRIPTION
|
|
267
297
|
Links a plugin into the CLI for development.
|
|
298
|
+
|
|
268
299
|
Installation of a linked plugin will override a user-installed or core plugin.
|
|
269
300
|
|
|
270
301
|
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
|
|
@@ -275,7 +306,7 @@ EXAMPLES
|
|
|
275
306
|
$ nex plugins link myplugin
|
|
276
307
|
```
|
|
277
308
|
|
|
278
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
309
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/link.ts)_
|
|
279
310
|
|
|
280
311
|
## `nex plugins remove [PLUGIN]`
|
|
281
312
|
|
|
@@ -316,7 +347,7 @@ FLAGS
|
|
|
316
347
|
--reinstall Reinstall all plugins after uninstalling.
|
|
317
348
|
```
|
|
318
349
|
|
|
319
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
350
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/reset.ts)_
|
|
320
351
|
|
|
321
352
|
## `nex plugins uninstall [PLUGIN]`
|
|
322
353
|
|
|
@@ -344,7 +375,7 @@ EXAMPLES
|
|
|
344
375
|
$ nex plugins uninstall myplugin
|
|
345
376
|
```
|
|
346
377
|
|
|
347
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
378
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/uninstall.ts)_
|
|
348
379
|
|
|
349
380
|
## `nex plugins unlink [PLUGIN]`
|
|
350
381
|
|
|
@@ -388,5 +419,5 @@ DESCRIPTION
|
|
|
388
419
|
Update installed plugins.
|
|
389
420
|
```
|
|
390
421
|
|
|
391
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
422
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/update.ts)_
|
|
392
423
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AuthenticatedCommand } from '../../common/authenticated-command.js';
|
|
2
|
+
export declare class App extends AuthenticatedCommand<typeof App> {
|
|
3
|
+
static args: {};
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
6
|
+
static flags: {
|
|
7
|
+
uninstall: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
8
|
+
applicationId: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
9
|
+
scope: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
10
|
+
};
|
|
11
|
+
private _logger;
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/app/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAE5E,qBAAa,GAAI,SAAQ,oBAAoB,CAAC,OAAO,GAAG,CAAC;IAEvD,MAAM,CAAC,IAAI,KACV;IAED,MAAM,CAAC,WAAW,SAAuQ;IAEzR,MAAM,CAAC,QAAQ,WAId;IAED,MAAM,CAAC,KAAK;;;;MAKX;IAED,OAAO,CAAC,OAAO,CAAmC;IAE5C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqD3B"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/* eslint-disable perfectionist/sort-objects */
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { Application, BackgroundScriptExecutor, Logger, NowStringUtil } from '@sonisoft/now-sdk-ext-core';
|
|
5
|
+
import fs from 'node:fs';
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
import { AuthenticatedCommand } from '../../common/authenticated-command.js';
|
|
8
|
+
export class App extends AuthenticatedCommand {
|
|
9
|
+
static args = {};
|
|
10
|
+
static description = 'Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw console output that Scripts - Background outputs to the browser in order to support the execution and result being piped to another command.';
|
|
11
|
+
static examples = [
|
|
12
|
+
`<%= config.bin %> <%= command.id %> exec global test.js --auth sn_alias
|
|
13
|
+
test
|
|
14
|
+
`,
|
|
15
|
+
];
|
|
16
|
+
static flags = {
|
|
17
|
+
// from: Flags.string({char: 'f', description: 'Who is saying hello', required: true}),
|
|
18
|
+
uninstall: Flags.boolean({ char: 'u', description: 'Uninstall the app', required: false }),
|
|
19
|
+
applicationId: Flags.string({ char: 'i', description: 'Application sys_id', required: false }),
|
|
20
|
+
scope: Flags.string({ char: 's', description: 'Scope of application.', required: false }),
|
|
21
|
+
};
|
|
22
|
+
_logger = new Logger("AppCommand");
|
|
23
|
+
async run() {
|
|
24
|
+
const { args, flags } = await this.parse(App);
|
|
25
|
+
this.log("App command");
|
|
26
|
+
if (flags.uninstall) {
|
|
27
|
+
this.log("Uninstalling app");
|
|
28
|
+
if (NowStringUtil.isStringEmpty(flags.applicationId)) {
|
|
29
|
+
this.error("Application ID is required when uninstalling an app");
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (NowStringUtil.isStringEmpty(flags.scope)) {
|
|
33
|
+
this.error("Scope is required when uninstalling an app");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
this.log("Passed checks. Uninstalling app.");
|
|
37
|
+
const app = new Application(this.instance, flags.scope, flags.applicationId);
|
|
38
|
+
await app.changeApplication();
|
|
39
|
+
await app.uninstall();
|
|
40
|
+
}
|
|
41
|
+
if (!NowStringUtil.isStringEmpty(args.file) && !NowStringUtil.isStringEmpty(args.scope)) {
|
|
42
|
+
try {
|
|
43
|
+
const filePath = path.resolve(args.file);
|
|
44
|
+
const script = fs.readFileSync(filePath).toString('utf8');
|
|
45
|
+
const scope = args.scope ?? "global";
|
|
46
|
+
const executor = new BackgroundScriptExecutor(this.instance, args.scope);
|
|
47
|
+
;
|
|
48
|
+
const result = await executor.executeScript(script, scope, this.instance);
|
|
49
|
+
this._logger.debug("Ran background script", result);
|
|
50
|
+
if (result !== null && result.scriptResults !== null) {
|
|
51
|
+
const { scriptResults } = result;
|
|
52
|
+
for (const scriptResult of scriptResults) {
|
|
53
|
+
this.log(scriptResult.line);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
throw new Error("Response from script execution was null or undefined. Please review logs to identify the problem.");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
this._logger.error("Error occurred when executing background script.", error);
|
|
62
|
+
this.error(error);
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AQ,EAAE,IAAI,CAAC,KAAK,CAAE,CAAC;gBAAA,CAAC;gBACtG,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAE,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAE,CAAC;gBAC5E,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;gBACpD,IAAG,MAAM,KAAK,IAAI,IAAI,MAAM,CAAC,aAAa,KAAK,IAAI,EAAC,CAAC;oBACnD,MAAM,EAAC,aAAa,EAAC,GAAG,MAAM,CAAC;oBAC/B,KAAI,MAAM,YAAY,IAAI,aAAa,EAAC,CAAC;wBACvC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;oBAC9B,CAAC;gBAEH,CAAC;qBAAI,CAAC;oBACJ,MAAM,IAAI,KAAK,CAAC,mGAAmG,CAAC,CAAC;gBACvH,CAAC;YAEH,CAAC;YAAA,OAAM,KAAK,EAAC,CAAC;gBACZ,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,kDAAkD,EAAE,KAAc,CAAC,CAAC;gBACvF,IAAI,CAAC,KAAK,CAAC,KAAc,CAAC,CAAC;YAC7B,CAAC;QAGH,CAAC;IAEH,CAAC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"app": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw console output that Scripts - Background outputs to the browser in order to support the execution and result being piped to another command.",
|
|
7
|
+
"examples": [
|
|
8
|
+
"<%= config.bin %> <%= command.id %> exec global test.js --auth sn_alias\ntest\n"
|
|
9
|
+
],
|
|
10
|
+
"flags": {
|
|
11
|
+
"json": {
|
|
12
|
+
"description": "Format output as json.",
|
|
13
|
+
"helpGroup": "GLOBAL",
|
|
14
|
+
"name": "json",
|
|
15
|
+
"allowNo": false,
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
},
|
|
18
|
+
"auth": {
|
|
19
|
+
"char": "a",
|
|
20
|
+
"description": "Auth alias to use.",
|
|
21
|
+
"name": "auth",
|
|
22
|
+
"required": false,
|
|
23
|
+
"hasDynamicHelp": false,
|
|
24
|
+
"multiple": false,
|
|
25
|
+
"type": "option"
|
|
26
|
+
},
|
|
27
|
+
"log-level": {
|
|
28
|
+
"helpGroup": "GLOBAL",
|
|
29
|
+
"name": "log-level",
|
|
30
|
+
"summary": "Specify level for logging.",
|
|
31
|
+
"default": "info",
|
|
32
|
+
"hasDynamicHelp": false,
|
|
33
|
+
"multiple": false,
|
|
34
|
+
"options": [
|
|
35
|
+
"debug",
|
|
36
|
+
"warn",
|
|
37
|
+
"error",
|
|
38
|
+
"info",
|
|
39
|
+
"trace"
|
|
40
|
+
],
|
|
41
|
+
"type": "option"
|
|
42
|
+
},
|
|
43
|
+
"uninstall": {
|
|
44
|
+
"char": "u",
|
|
45
|
+
"description": "Uninstall the app",
|
|
46
|
+
"name": "uninstall",
|
|
47
|
+
"required": false,
|
|
48
|
+
"allowNo": false,
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"applicationId": {
|
|
52
|
+
"char": "i",
|
|
53
|
+
"description": "Application sys_id",
|
|
54
|
+
"name": "applicationId",
|
|
55
|
+
"required": false,
|
|
56
|
+
"hasDynamicHelp": false,
|
|
57
|
+
"multiple": false,
|
|
58
|
+
"type": "option"
|
|
59
|
+
},
|
|
60
|
+
"scope": {
|
|
61
|
+
"char": "s",
|
|
62
|
+
"description": "Scope of application.",
|
|
63
|
+
"name": "scope",
|
|
64
|
+
"required": false,
|
|
65
|
+
"hasDynamicHelp": false,
|
|
66
|
+
"multiple": false,
|
|
67
|
+
"type": "option"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"hasDynamicHelp": false,
|
|
71
|
+
"hiddenAliases": [],
|
|
72
|
+
"id": "app",
|
|
73
|
+
"pluginAlias": "@sonisoft/now-sdk-ext-cli",
|
|
74
|
+
"pluginName": "@sonisoft/now-sdk-ext-cli",
|
|
75
|
+
"pluginType": "core",
|
|
76
|
+
"strict": true,
|
|
77
|
+
"enableJsonFlag": true,
|
|
78
|
+
"isESM": true,
|
|
79
|
+
"relativePath": [
|
|
80
|
+
"dist",
|
|
81
|
+
"commands",
|
|
82
|
+
"app",
|
|
83
|
+
"index.js"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
3
86
|
"exec": {
|
|
4
87
|
"aliases": [],
|
|
5
88
|
"args": {
|
|
@@ -69,5 +152,5 @@
|
|
|
69
152
|
]
|
|
70
153
|
}
|
|
71
154
|
},
|
|
72
|
-
"version": "1.1.0-alpha.
|
|
155
|
+
"version": "1.1.0-alpha.1"
|
|
73
156
|
}
|
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonisoft/now-sdk-ext-cli",
|
|
3
3
|
"description": "A CLI extending the functionality of the ServiceNow SDK.",
|
|
4
|
-
"version": "1.1.0-alpha.
|
|
4
|
+
"version": "1.1.0-alpha.1",
|
|
5
5
|
"author": "Chris Nanda",
|
|
6
6
|
"bin": {
|
|
7
7
|
"nex": "./bin/run.js"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@oclif/core": "^4.0.2",
|
|
12
11
|
"@oclif/plugin-help": "^6.2.10",
|
|
13
12
|
"@oclif/plugin-plugins": "^5.4.6",
|
|
14
13
|
"@servicenow/glide": "^26.0.1",
|
|
15
14
|
"@servicenow/sdk": "3.0.2",
|
|
16
15
|
"@servicenow/sdk-build": "3.0.2",
|
|
16
|
+
"@servicenow/sdk-build-core": "3.0.2",
|
|
17
17
|
"@servicenow/sdk-cli": "3.0.2",
|
|
18
18
|
"@servicenow/sdk-cli-core": "3.0.2",
|
|
19
19
|
"@servicenow/sdk-core": "3.0.2",
|
|
20
20
|
"@servicenow/sdk-project": "3.0.2",
|
|
21
|
-
"@
|
|
22
|
-
"@sonisoft/now-sdk-ext-core": "^1.0.0-alpha.31",
|
|
21
|
+
"@sonisoft/now-sdk-ext-core": "^1.0.0-alpha.32",
|
|
23
22
|
"@ts-morph/common": "^0.24.0",
|
|
24
23
|
"cometd": "^8.0.4",
|
|
25
24
|
"cometd-nodejs-client": "^2.0.0",
|
|
@@ -31,6 +30,7 @@
|
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"@jest/globals": "^29.7.0",
|
|
33
|
+
"@oclif/core": "^4.5.1",
|
|
34
34
|
"@oclif/prettier-config": "^0.2.1",
|
|
35
35
|
"@oclif/test": "^4",
|
|
36
36
|
"@supercharge/fs": "^3.4.2",
|
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
"topics": {
|
|
89
89
|
"exec": {
|
|
90
90
|
"description": "Execute scripts remotely on a ServiceNow instance. Immitates using Scripts - Background from within ServiceNow."
|
|
91
|
+
},
|
|
92
|
+
"app": {
|
|
93
|
+
"description": "Operations on ServiceNow Applications."
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
},
|