@commercelayer/cli-plugin-provisioning 2.0.0-oclif3.6 → 2.0.0-oclif3.8
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
|
@@ -205,8 +205,8 @@ Retrieve a resource or list a set of resources.
|
|
|
205
205
|
|
|
206
206
|
```sh-session
|
|
207
207
|
USAGE
|
|
208
|
-
$ commercelayer provisioning:get RESOURCE [ID] [-i <value>] [-f <value>] [-u -j] [-H -R] [-Y ] [-
|
|
209
|
-
<value>] [-
|
|
208
|
+
$ commercelayer provisioning:get RESOURCE [ID] [-i <value>] [-f <value>] [-u -j] [-H -R] [-Y ] [-e <value> | ] [-w
|
|
209
|
+
<value>] [-p <value>] [-n <value>] [-s <value>]
|
|
210
210
|
|
|
211
211
|
ARGUMENTS
|
|
212
212
|
RESOURCE the resource type
|
package/lib/base.d.ts
CHANGED
|
@@ -36,6 +36,9 @@ export declare abstract class BaseFilterCommand extends BaseCommand {
|
|
|
36
36
|
headers: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
37
37
|
'headers-only': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
38
38
|
};
|
|
39
|
+
static args: {
|
|
40
|
+
[x: string]: import("@oclif/core/lib/interfaces").Arg<any, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
41
|
+
};
|
|
39
42
|
init(): Promise<any>;
|
|
40
43
|
catch(error: CommandError): Promise<any>;
|
|
41
44
|
includeFlag(flag: string[] | undefined, relationships?: KeyValRel, force?: boolean): string[];
|
package/lib/base.js
CHANGED
|
@@ -161,6 +161,7 @@ class BaseCommand extends core_1.Command {
|
|
|
161
161
|
exports.BaseCommand = BaseCommand;
|
|
162
162
|
class BaseFilterCommand extends BaseCommand {
|
|
163
163
|
static flags = {
|
|
164
|
+
...BaseCommand.flags,
|
|
164
165
|
include: core_1.Flags.string({
|
|
165
166
|
char: 'i',
|
|
166
167
|
multiple: true,
|
|
@@ -233,7 +234,10 @@ class BaseFilterCommand extends BaseCommand {
|
|
|
233
234
|
description: 'show only response headers',
|
|
234
235
|
dependsOn: ['raw'],
|
|
235
236
|
exclusive: ['headers', 'fields', 'include'],
|
|
236
|
-
})
|
|
237
|
+
})
|
|
238
|
+
};
|
|
239
|
+
static args = {
|
|
240
|
+
...BaseCommand.args
|
|
237
241
|
};
|
|
238
242
|
// INIT (override)
|
|
239
243
|
async init() {
|
|
@@ -17,5 +17,8 @@ export default class ProvisioningCreate extends Command {
|
|
|
17
17
|
headers: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
18
|
'headers-only': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
19
|
};
|
|
20
|
+
static args: {
|
|
21
|
+
resource: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
22
|
+
};
|
|
20
23
|
run(): Promise<any>;
|
|
21
24
|
}
|
|
@@ -44,6 +44,9 @@ class ProvisioningCreate extends base_1.default {
|
|
|
44
44
|
exclusive: ['attribute', 'relationship', 'metadata', 'doc' /* , FLAG_LOAD_PARAMS, FLAG_SAVE_PARAMS */],
|
|
45
45
|
})
|
|
46
46
|
};
|
|
47
|
+
static args = {
|
|
48
|
+
...base_1.default.args
|
|
49
|
+
};
|
|
47
50
|
async run() {
|
|
48
51
|
const { args, flags } = await this.parse(ProvisioningCreate);
|
|
49
52
|
const resource = this.checkResource(args.resource, { singular: true });
|
package/oclif.manifest.json
CHANGED
|
@@ -679,6 +679,17 @@
|
|
|
679
679
|
"allowNo": false,
|
|
680
680
|
"type": "boolean"
|
|
681
681
|
},
|
|
682
|
+
"extract": {
|
|
683
|
+
"char": "e",
|
|
684
|
+
"description": "extract subfields from object attributes",
|
|
685
|
+
"exclusive": [
|
|
686
|
+
"raw"
|
|
687
|
+
],
|
|
688
|
+
"name": "extract",
|
|
689
|
+
"hasDynamicHelp": false,
|
|
690
|
+
"multiple": true,
|
|
691
|
+
"type": "option"
|
|
692
|
+
},
|
|
682
693
|
"where": {
|
|
683
694
|
"char": "w",
|
|
684
695
|
"description": "comma separated list of query filters",
|
|
@@ -711,17 +722,6 @@
|
|
|
711
722
|
"multiple": true,
|
|
712
723
|
"type": "option"
|
|
713
724
|
},
|
|
714
|
-
"extract": {
|
|
715
|
-
"char": "e",
|
|
716
|
-
"description": "extract subfields from object attributes",
|
|
717
|
-
"exclusive": [
|
|
718
|
-
"raw"
|
|
719
|
-
],
|
|
720
|
-
"name": "extract",
|
|
721
|
-
"hasDynamicHelp": false,
|
|
722
|
-
"multiple": true,
|
|
723
|
-
"type": "option"
|
|
724
|
-
},
|
|
725
725
|
"force-include": {
|
|
726
726
|
"char": "I",
|
|
727
727
|
"dependsOn": [
|
|
@@ -1514,5 +1514,5 @@
|
|
|
1514
1514
|
]
|
|
1515
1515
|
}
|
|
1516
1516
|
},
|
|
1517
|
-
"version": "2.0.0-oclif3.
|
|
1517
|
+
"version": "2.0.0-oclif3.8"
|
|
1518
1518
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/cli-plugin-provisioning",
|
|
3
3
|
"description": "Commerce Layer CLI Provisioning plugin",
|
|
4
|
-
"version": "2.0.0-oclif3.
|
|
4
|
+
"version": "2.0.0-oclif3.8",
|
|
5
5
|
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",
|
|
6
6
|
"homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-provisioning",
|
|
7
7
|
"repository": "commercelayer/commercelayer-cli-plugin-provisioning",
|
|
@@ -58,26 +58,26 @@
|
|
|
58
58
|
"@commercelayer/cli-dev": "beta",
|
|
59
59
|
"@commercelayer/eslint-config-ts": "^1.3.0",
|
|
60
60
|
"@oclif/plugin-help": "^6.0.14",
|
|
61
|
-
"@oclif/test": "^3.2.
|
|
61
|
+
"@oclif/test": "^3.2.1",
|
|
62
62
|
"@semantic-release/changelog": "^6.0.3",
|
|
63
63
|
"@semantic-release/git": "^10.0.1",
|
|
64
64
|
"@types/chai": "^4.3.12",
|
|
65
65
|
"@types/mocha": "^10.0.6",
|
|
66
66
|
"@types/node": "^20.11.20",
|
|
67
67
|
"chai": "^4.4.1",
|
|
68
|
-
"eslint": "^8.
|
|
68
|
+
"eslint": "^8.57.0",
|
|
69
69
|
"mocha": "^10.3.0",
|
|
70
70
|
"nyc": "^15.1.0",
|
|
71
|
-
"oclif": "^4.4.
|
|
71
|
+
"oclif": "^4.4.19",
|
|
72
72
|
"semantic-release": "^23.0.2",
|
|
73
73
|
"ts-node": "^10.9.2",
|
|
74
74
|
"typescript": "^5.3.3"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@commercelayer/cli-core": "beta",
|
|
78
|
-
"@commercelayer/provisioning-sdk": "^1.0.
|
|
79
|
-
"@oclif/core": "^3.19.
|
|
80
|
-
"json-2-csv": "^5.
|
|
78
|
+
"@commercelayer/provisioning-sdk": "^1.0.1",
|
|
79
|
+
"@oclif/core": "^3.19.7",
|
|
80
|
+
"json-2-csv": "^5.4.0",
|
|
81
81
|
"tslib": "^2.6.2"
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": {
|