@salesforce/cli 1.59.0 → 1.60.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.
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2022, Salesforce.com, Inc.
1
+ Copyright (c) 2023, Salesforce.com, Inc.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -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;