sf-raven 1.0.0 → 1.0.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe.js","sourceRoot":"","sources":["../../../src/commands/event/subscribe.ts"],"names":[],"mappings":";;AAAA,iEAAmE;AACnE,2CAA6D;AAE7D,6CAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"subscribe.js","sourceRoot":"","sources":["../../../src/commands/event/subscribe.ts"],"names":[],"mappings":";;AAAA,iEAAmE;AACnE,2CAA6D;AAE7D,6CAA+C;AAC/C,oCAAoC;AAEpC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;AAMtE,MAAqB,cAAe,SAAQ,2BAA+B;IA6BlE,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAEnD,MAAM,EAAE,GAAG,IAAI,oBAAE,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAEvD,4CAA4C;QAE5C,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;QAEpE,MAAM,eAAe,GAAG,CAAC,OAAgB,EAA0B,EAAE;YACnE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;YAChD,OAAO;gBACL,SAAS,EAAE,KAAK;aACjB,CAAC;QACJ,CAAC,CAAC;QAEF,MAAM,OAAO,GAAG,IAAI,sBAAe,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,E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AE,GAAG;QACT,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,KAAK,EAAE,uBAAK,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;QACnD,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,QAAQ,EAAE,uBAAK,CAAC,OAAO,CAAC;QACtB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;QACtD,IAAI,EAAE,GAAG;KACV,CAAC;IACF,OAAO,EAAE,uBAAK,CAAC,OAAO,CAAC;QACrB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;QACrD,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;QACP,OAAO,EAAE,CAAC;KACX,CAAC;CACH,CAAC;kBA3BiB,cAAc"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.1",
|
|
3
3
|
"commands": {
|
|
4
4
|
"event:subscribe": {
|
|
5
5
|
"id": "event:subscribe",
|
|
@@ -59,39 +59,6 @@
|
|
|
59
59
|
"args": {},
|
|
60
60
|
"hasDynamicHelp": true
|
|
61
61
|
},
|
|
62
|
-
"hello:world": {
|
|
63
|
-
"id": "hello:world",
|
|
64
|
-
"summary": "Say hello.",
|
|
65
|
-
"description": "Say hello either to the world or someone you know.",
|
|
66
|
-
"strict": true,
|
|
67
|
-
"pluginName": "sf-raven",
|
|
68
|
-
"pluginAlias": "sf-raven",
|
|
69
|
-
"pluginType": "core",
|
|
70
|
-
"aliases": [],
|
|
71
|
-
"examples": [
|
|
72
|
-
"Say hello to the world:\n<%= config.bin %> <%= command.id %>",
|
|
73
|
-
"Say hello to someone you know:\n<%= config.bin %> <%= command.id %> --name Astro"
|
|
74
|
-
],
|
|
75
|
-
"flags": {
|
|
76
|
-
"json": {
|
|
77
|
-
"name": "json",
|
|
78
|
-
"type": "boolean",
|
|
79
|
-
"description": "Format output as json.",
|
|
80
|
-
"helpGroup": "GLOBAL",
|
|
81
|
-
"allowNo": false
|
|
82
|
-
},
|
|
83
|
-
"name": {
|
|
84
|
-
"name": "name",
|
|
85
|
-
"type": "option",
|
|
86
|
-
"char": "n",
|
|
87
|
-
"summary": "The name of the person you'd like to say hello to.",
|
|
88
|
-
"description": "This person can be anyone in the world!",
|
|
89
|
-
"multiple": false,
|
|
90
|
-
"default": "World"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"args": {}
|
|
94
|
-
},
|
|
95
62
|
"object:display:fields": {
|
|
96
63
|
"id": "object:display:fields",
|
|
97
64
|
"summary": "Show field information for a given sObject.",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sf-raven",
|
|
3
3
|
"description": "A custom sf plugin built by @tomcarman",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "^2.11.8",
|
|
7
7
|
"@salesforce/core": "^5.2.10",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"output": []
|
|
136
136
|
},
|
|
137
137
|
"lint": {
|
|
138
|
-
"command": "eslint src
|
|
138
|
+
"command": "eslint src --color --cache --cache-location .eslintcache",
|
|
139
139
|
"files": [
|
|
140
140
|
"src/**/*.ts",
|
|
141
141
|
"test/**/*.ts",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
export type HelloWorldResult = {
|
|
3
|
-
name: string;
|
|
4
|
-
time: string;
|
|
5
|
-
};
|
|
6
|
-
export default class World extends SfCommand<HelloWorldResult> {
|
|
7
|
-
static readonly summary: string;
|
|
8
|
-
static readonly description: string;
|
|
9
|
-
static readonly examples: string[];
|
|
10
|
-
static readonly flags: {
|
|
11
|
-
name: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
|
-
};
|
|
13
|
-
run(): Promise<HelloWorldResult>;
|
|
14
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
4
|
-
const core_1 = require("@salesforce/core");
|
|
5
|
-
core_1.Messages.importMessagesDirectory(__dirname);
|
|
6
|
-
const messages = core_1.Messages.loadMessages('sf-raven', 'hello.world');
|
|
7
|
-
class World extends sf_plugins_core_1.SfCommand {
|
|
8
|
-
async run() {
|
|
9
|
-
const { flags } = await this.parse(World);
|
|
10
|
-
const time = new Date().toDateString();
|
|
11
|
-
this.log(messages.getMessage('info.hello', [flags.name, time]));
|
|
12
|
-
return {
|
|
13
|
-
name: flags.name,
|
|
14
|
-
time,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
World.summary = messages.getMessage('summary');
|
|
19
|
-
World.description = messages.getMessage('description');
|
|
20
|
-
World.examples = messages.getMessages('examples');
|
|
21
|
-
World.flags = {
|
|
22
|
-
name: sf_plugins_core_1.Flags.string({
|
|
23
|
-
char: 'n',
|
|
24
|
-
summary: messages.getMessage('flags.name.summary'),
|
|
25
|
-
description: messages.getMessage('flags.name.description'),
|
|
26
|
-
default: 'World',
|
|
27
|
-
}),
|
|
28
|
-
};
|
|
29
|
-
exports.default = World;
|
|
30
|
-
//# sourceMappingURL=world.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"world.js","sourceRoot":"","sources":["../../../src/commands/hello/world.ts"],"names":[],"mappings":";;AAAA,iEAA+D;AAC/D,2CAA4C;AAE5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AAOlE,MAAqB,KAAM,SAAQ,2BAA2B;IAcrD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1C,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC;QACvC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QAChE,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,IAAI;SACL,CAAC;IACJ,CAAC;;AArBsB,aAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,iBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,cAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C,WAAK,GAAG;IAC7B,IAAI,EAAE,uBAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAClD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;QAC1D,OAAO,EAAE,OAAO;KACjB,CAAC;CACH,CAAC;kBAZiB,KAAK"}
|
package/messages/hello.world.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# summary
|
|
2
|
-
|
|
3
|
-
Say hello.
|
|
4
|
-
|
|
5
|
-
# description
|
|
6
|
-
|
|
7
|
-
Say hello either to the world or someone you know.
|
|
8
|
-
|
|
9
|
-
# flags.name.summary
|
|
10
|
-
|
|
11
|
-
The name of the person you'd like to say hello to.
|
|
12
|
-
|
|
13
|
-
# flags.name.description
|
|
14
|
-
|
|
15
|
-
This person can be anyone in the world!
|
|
16
|
-
|
|
17
|
-
# examples
|
|
18
|
-
|
|
19
|
-
- Say hello to the world:
|
|
20
|
-
|
|
21
|
-
<%= config.bin %> <%= command.id %>
|
|
22
|
-
|
|
23
|
-
- Say hello to someone you know:
|
|
24
|
-
|
|
25
|
-
<%= config.bin %> <%= command.id %> --name Astro
|
|
26
|
-
|
|
27
|
-
# info.hello
|
|
28
|
-
|
|
29
|
-
Hello %s at %s.
|