@salesforce/sf-plugins-core 1.4.1 → 1.5.0
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 +6 -0
- package/lib/flags/orgFlags.js +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.5.0](https://github.com/salesforcecli/sf-plugins-core/compare/v1.4.1...v1.5.0) (2022-03-03)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- friendly default help for org flags ([f4d55b3](https://github.com/salesforcecli/sf-plugins-core/commit/f4d55b30c08e988c0231b97acce8ba2bc9733a06))
|
|
10
|
+
|
|
5
11
|
### [1.4.1](https://github.com/salesforcecli/sf-plugins-core/compare/v1.4.0...v1.4.1) (2022-03-02)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
package/lib/flags/orgFlags.js
CHANGED
|
@@ -58,6 +58,7 @@ exports.optionalOrgFlag = core_1.Flags.build({
|
|
|
58
58
|
char: 'e',
|
|
59
59
|
parse: async (input) => await maybeGetOrg(input),
|
|
60
60
|
default: async () => await maybeGetOrg(),
|
|
61
|
+
defaultHelp: async () => { var _a; return (_a = (await maybeGetOrg(undefined))) === null || _a === void 0 ? void 0 : _a.getUsername(); },
|
|
61
62
|
});
|
|
62
63
|
/**
|
|
63
64
|
* An required org, specified by username or alias
|
|
@@ -82,6 +83,7 @@ exports.requiredOrgFlag = core_1.Flags.build({
|
|
|
82
83
|
char: 'e',
|
|
83
84
|
parse: async (input) => await getOrgOrThrow(input),
|
|
84
85
|
default: async () => await getOrgOrThrow(undefined),
|
|
86
|
+
defaultHelp: async () => { var _a; return (_a = (await getOrgOrThrow(undefined))) === null || _a === void 0 ? void 0 : _a.getUsername(); },
|
|
85
87
|
});
|
|
86
88
|
/**
|
|
87
89
|
* An required org that is a devHub
|
|
@@ -106,5 +108,6 @@ exports.requiredHubFlag = core_1.Flags.build({
|
|
|
106
108
|
char: 'v',
|
|
107
109
|
parse: async (input) => await getHubOrThrow(input),
|
|
108
110
|
default: async () => await getHubOrThrow(undefined),
|
|
111
|
+
defaultHelp: async () => { var _a; return (_a = (await getHubOrThrow(undefined))) === null || _a === void 0 ? void 0 : _a.getUsername(); },
|
|
109
112
|
});
|
|
110
113
|
//# sourceMappingURL=orgFlags.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/sf-plugins-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Utils for writing deploy and retrieve plugins",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"/messages"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@oclif/core": "^1.5.
|
|
35
|
+
"@oclif/core": "^1.5.1",
|
|
36
36
|
"@salesforce/core": "^3.7.7",
|
|
37
37
|
"@salesforce/kit": "^1.5.17",
|
|
38
38
|
"@salesforce/ts-types": "^1.5.20",
|