@salesforce/cli 1.59.0 → 1.60.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/LICENSE.txt +1 -1
- package/dist/hooks/incomplete.js +5 -0
- package/npm-shrinkwrap.json +369 -607
- package/oclif.manifest.json +1 -1
- package/package.json +24 -19
package/LICENSE.txt
CHANGED
package/dist/hooks/incomplete.js
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const os = require("os");
|
|
9
10
|
const core_1 = require("@oclif/core");
|
|
10
11
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
12
|
+
const core_2 = require("@salesforce/core");
|
|
11
13
|
async function determineCommand(config, matches) {
|
|
12
14
|
if (matches.length === 1)
|
|
13
15
|
return matches[0].id;
|
|
@@ -27,6 +29,9 @@ const hook = async function ({ config, matches, argv }) {
|
|
|
27
29
|
if (argv.includes('--help') || argv.includes('-h')) {
|
|
28
30
|
return config.runCommand('help', [(0, core_1.toStandardizedId)(command, config)]);
|
|
29
31
|
}
|
|
32
|
+
if (matches.length === 1) {
|
|
33
|
+
await core_2.Lifecycle.getInstance().emitWarning(`One command matches the partial command entered, running command:${os.EOL}${config.bin} ${(0, core_1.toConfiguredId)(command, config)} ${argv.join(' ')}`);
|
|
34
|
+
}
|
|
30
35
|
return config.runCommand((0, core_1.toStandardizedId)(command, config), argv);
|
|
31
36
|
};
|
|
32
37
|
exports.default = hook;
|