sfdx-jayree 4.2.5 → 4.3.3
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 +35 -0
- package/README.md +33 -67
- package/bin/is-sfdx.js +3 -0
- package/lib/src/commands/jayree/automation/changeset/deploy.js +2 -2
- package/lib/src/commands/jayree/automation/ltngsync/status.js +5 -5
- package/lib/src/commands/jayree/automation/ltngsync/status.js.map +1 -1
- package/lib/src/commands/jayree/packagedescription/get.js +1 -1
- package/lib/src/utils/config.js +1 -2
- package/lib/src/utils/config.js.map +1 -1
- package/lib/src/utils/puppeteer/configuretasks.js +3 -2
- package/lib/src/utils/puppeteer/configuretasks.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +34 -34
- package/yarn.lock +782 -3145
- package/lib/src/commands/jayree/org/open.d.ts +0 -15
- package/lib/src/commands/jayree/org/open.js +0 -91
- package/lib/src/commands/jayree/org/open.js.map +0 -1
- package/messages/openorg.json +0 -6
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { flags, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { AnyJson } from '@salesforce/ts-types';
|
|
3
|
-
export default class OrgOpen extends SfdxCommand {
|
|
4
|
-
static description: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
protected static flagsConfig: {
|
|
7
|
-
browser: flags.Discriminated<flags.String>;
|
|
8
|
-
path: flags.Discriminated<flags.String>;
|
|
9
|
-
urlonly: flags.Discriminated<flags.Boolean<boolean>>;
|
|
10
|
-
};
|
|
11
|
-
protected static requiresUsername: boolean;
|
|
12
|
-
protected static supportsDevhubUsername: boolean;
|
|
13
|
-
protected static requiresProject: boolean;
|
|
14
|
-
run(): Promise<AnyJson>;
|
|
15
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
/*
|
|
5
|
-
* Copyright (c) 2021, jayree
|
|
6
|
-
* All rights reserved.
|
|
7
|
-
* Licensed under the BSD 3-Clause license.
|
|
8
|
-
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
|
-
*/
|
|
10
|
-
const command_1 = require("@salesforce/command");
|
|
11
|
-
const core_1 = require("@salesforce/core");
|
|
12
|
-
const open_1 = (0, tslib_1.__importDefault)(require("open"));
|
|
13
|
-
core_1.Messages.importMessagesDirectory(__dirname);
|
|
14
|
-
const messages = core_1.Messages.loadMessages('sfdx-jayree', 'openorg');
|
|
15
|
-
class OrgOpen extends command_1.SfdxCommand {
|
|
16
|
-
async run() {
|
|
17
|
-
let browser;
|
|
18
|
-
switch (this.flags.browser) {
|
|
19
|
-
case 'chrome':
|
|
20
|
-
browser = open_1.default.apps.chrome;
|
|
21
|
-
break;
|
|
22
|
-
case 'firefox':
|
|
23
|
-
browser = open_1.default.apps.firefox;
|
|
24
|
-
break;
|
|
25
|
-
case 'edge':
|
|
26
|
-
browser = open_1.default.apps.edge;
|
|
27
|
-
break;
|
|
28
|
-
case 'safari':
|
|
29
|
-
if (process.platform === 'darwin') {
|
|
30
|
-
browser = 'safari';
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
throw Error(this.flags.browser + ' is not supported on ' + process.platform);
|
|
34
|
-
}
|
|
35
|
-
const conn = this.org.getConnection();
|
|
36
|
-
let url = conn.instanceUrl + '/secur/frontdoor.jsp?sid=' + conn.accessToken;
|
|
37
|
-
if (this.flags.path) {
|
|
38
|
-
url = url + '&retURL=' + this.flags.path;
|
|
39
|
-
}
|
|
40
|
-
this.ux.log('Access org ' +
|
|
41
|
-
this.org.getOrgId() +
|
|
42
|
-
' as user ' +
|
|
43
|
-
this.org.getUsername() +
|
|
44
|
-
' with the following URL: ' +
|
|
45
|
-
url +
|
|
46
|
-
" using browser '" +
|
|
47
|
-
browser +
|
|
48
|
-
"'");
|
|
49
|
-
/* istanbul ignore next */
|
|
50
|
-
if (!this.flags.urlonly) {
|
|
51
|
-
await (0, open_1.default)(url, {
|
|
52
|
-
app: { name: browser },
|
|
53
|
-
wait: false,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
url,
|
|
58
|
-
orgId: this.org.getOrgId(),
|
|
59
|
-
username: this.org.getUsername(),
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.default = OrgOpen;
|
|
64
|
-
OrgOpen.description = messages.getMessage('commandDescription');
|
|
65
|
-
OrgOpen.examples = [
|
|
66
|
-
`$ sfdx jayree:org:open
|
|
67
|
-
$ sfdx jayree:org:open -u me@my.org
|
|
68
|
-
$ sfdx jayree:org:open -u MyTestOrg1 -b firefox
|
|
69
|
-
$ sfdx jayree:org:open -r -p lightning -b safari
|
|
70
|
-
$ sfdx jayree:org:open -u me@my.org`,
|
|
71
|
-
];
|
|
72
|
-
OrgOpen.flagsConfig = {
|
|
73
|
-
browser: command_1.flags.string({
|
|
74
|
-
char: 'b',
|
|
75
|
-
description: messages.getMessage('browserFlagDescription'),
|
|
76
|
-
options: ['firefox', 'chrome', 'edge', 'safari'],
|
|
77
|
-
default: 'chrome',
|
|
78
|
-
}),
|
|
79
|
-
path: command_1.flags.string({
|
|
80
|
-
char: 'p',
|
|
81
|
-
description: messages.getMessage('pathFlagDescription'),
|
|
82
|
-
}),
|
|
83
|
-
urlonly: command_1.flags.boolean({
|
|
84
|
-
char: 'r',
|
|
85
|
-
description: messages.getMessage('urlonlyFlagDescription'),
|
|
86
|
-
}),
|
|
87
|
-
};
|
|
88
|
-
OrgOpen.requiresUsername = true;
|
|
89
|
-
OrgOpen.supportsDevhubUsername = false;
|
|
90
|
-
OrgOpen.requiresProject = false;
|
|
91
|
-
//# sourceMappingURL=open.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"open.js","sourceRoot":"","sources":["../../../../../src/commands/jayree/org/open.ts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