@coana-tech/cli 14.12.96 → 14.12.97

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/cli.mjs CHANGED
@@ -223735,7 +223735,7 @@ var systemPython = once2(() => {
223735
223735
  }
223736
223736
  }
223737
223737
  });
223738
- var hasPyenv = once2(async () => !(await execNeverFail("which pyenv")).error);
223738
+ var hasPyenv = once2(async () => !(await execNeverFail2("which pyenv")).error);
223739
223739
 
223740
223740
  // ../utils/src/pip-utils.ts
223741
223741
  var import_picomatch6 = __toESM(require_picomatch2(), 1);
@@ -244619,7 +244619,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
244619
244619
  }
244620
244620
 
244621
244621
  // dist/version.js
244622
- var version2 = "14.12.96";
244622
+ var version2 = "14.12.97";
244623
244623
 
244624
244624
  // dist/cli-core.js
244625
244625
  var { mapValues, omit, partition, pick } = import_lodash15.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.96",
3
+ "version": "14.12.97",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -80879,9 +80879,9 @@ var systemPython = once(() => {
80879
80879
  }
80880
80880
  }
80881
80881
  });
80882
- var hasPyenv = once(async () => !(await execNeverFail("which pyenv")).error);
80882
+ var hasPyenv = once(async () => !(await execNeverFail2("which pyenv")).error);
80883
80883
  async function getPythonVersion(executable) {
80884
- return runCommandResolveStdOut([executable, "-SIc", `import sys; print(*sys.version_info[:3], sep='.')`]);
80884
+ return runCommandResolveStdOut2([executable, "-SIc", `import sys; print(*sys.version_info[:3], sep='.')`]);
80885
80885
  }
80886
80886
  var PythonVersionsManager = class _PythonVersionsManager {
80887
80887
  constructor(projectDir) {
@@ -80896,7 +80896,7 @@ var PythonVersionsManager = class _PythonVersionsManager {
80896
80896
  return this.availablePythonVersions ??= execFileSync("pyenv", ["install", "--list"], { encoding: "utf-8" }).split("\n").slice(1).map((v) => v.trim()).filter((v) => /^\d+\.\d+\.\d+$/.test(v));
80897
80897
  }
80898
80898
  static async getInstalledPythonVersions() {
80899
- return (await runCommandResolveStdOut("pyenv versions --bare")).split("\n").map((v) => v.trim());
80899
+ return (await runCommandResolveStdOut2("pyenv versions --bare")).split("\n").map((v) => v.trim());
80900
80900
  }
80901
80901
  // Return a Python version (e.g. 3.8.12) that satisfies the specifier.
80902
80902
  // If the specifier is undefined, or if no version matches the specifier, return the global python version.
@@ -80970,7 +80970,7 @@ var PythonVersionsManager = class _PythonVersionsManager {
80970
80970
  }
80971
80971
  // Throws an error if the python version is not installed.
80972
80972
  static async getPythonPrefixForVersion(version3) {
80973
- return runCommandResolveStdOut(cmdt`pyenv prefix ${version3}`);
80973
+ return runCommandResolveStdOut2(cmdt`pyenv prefix ${version3}`);
80974
80974
  }
80975
80975
  static async getInstalledPythonExecutables() {
80976
80976
  const versions = await this.getInstalledPythonVersions();
@@ -80989,7 +80989,7 @@ var PythonVersionsManager = class _PythonVersionsManager {
80989
80989
  return await this.getPythonPrefixForVersion(version3);
80990
80990
  } catch (e) {
80991
80991
  logger.info("Installing python version:", version3);
80992
- await runCommandResolveStdOut(cmdt`pyenv install --skip-existing ${version3}`);
80992
+ await runCommandResolveStdOut2(cmdt`pyenv install --skip-existing ${version3}`);
80993
80993
  logger.info("Completed installation of python version:", version3);
80994
80994
  return await this.getPythonPrefixForVersion(version3);
80995
80995
  }
@@ -81212,7 +81212,7 @@ with open(sys.argv[1], 'rb') as f:
81212
81212
  json.dump(tomllib.load(f), sys.stdout, default=lambda _: None)
81213
81213
  `;
81214
81214
  async function parseTomlFile(file) {
81215
- return JSON.parse(await runCommandResolveStdOut(["python", "-SIc", parseTomlProgram, file]));
81215
+ return JSON.parse(await runCommandResolveStdOut2(["python", "-SIc", parseTomlProgram, file]));
81216
81216
  }
81217
81217
  async function getPyProjectParsed(dir) {
81218
81218
  const pyprojectLoc = resolve4(dir, "pyproject.toml");
@@ -103691,7 +103691,7 @@ async function getMavenCLIOpts() {
103691
103691
  }
103692
103692
  async function isMavenInstalled() {
103693
103693
  try {
103694
- await runCommandResolveStdOut("mvn --version");
103694
+ await runCommandResolveStdOut2("mvn --version");
103695
103695
  return true;
103696
103696
  } catch (e) {
103697
103697
  return false;
@@ -103699,7 +103699,7 @@ async function isMavenInstalled() {
103699
103699
  }
103700
103700
  async function findLocalRepository() {
103701
103701
  try {
103702
- return await runCommandResolveStdOut(
103702
+ return await runCommandResolveStdOut2(
103703
103703
  cmdt`mvn ${await getMavenCLIOpts()} help:evaluate -Dexpression=settings.localRepository -q -DforceStdout`
103704
103704
  );
103705
103705
  } catch (e) {