hostctl 0.1.47 → 0.1.48

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/dist/index.d.ts CHANGED
@@ -841,9 +841,7 @@ declare class App {
841
841
  private resolveTaskFnFromModule;
842
842
  parseParams(scriptArgs: string[]): Object;
843
843
  pathOfPackageJsonFile(path: string): Path | null;
844
- printRuntimeReport(): Promise<void>;
845
844
  promptPasswordInteractively(message?: string): Promise<string>;
846
- installRuntime(): Promise<void>;
847
845
  /**
848
846
  * Executes a command on the selected hosts
849
847
  *
@@ -892,8 +890,6 @@ declare class Cli {
892
890
  deriveConfigRef(suppliedConfigRef?: string): string;
893
891
  loadApp(opts: Record<string, any>): Promise<void>;
894
892
  run(): Promise<void>;
895
- handleRuntime(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
896
- handleRuntimeInstall(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
897
893
  handlePkgCreate(packageName: string, options: {
898
894
  lang: 'typescript' | 'javascript';
899
895
  }): Promise<void>;
package/dist/index.js CHANGED
@@ -2718,7 +2718,7 @@ var Verbosity = {
2718
2718
  };
2719
2719
 
2720
2720
  // src/version.ts
2721
- var version = "0.1.47";
2721
+ var version = "0.1.48";
2722
2722
 
2723
2723
  // src/commands/pkg/create.ts
2724
2724
  import { promises as fs5 } from "fs";
@@ -4630,8 +4630,6 @@ var Cli = class {
4630
4630
  '-p, --params "<json object>"',
4631
4631
  "runtime parameters supplied as a string to be parsed as a json object representing params to supply to the script"
4632
4632
  ).option("-r, --remote", "run the script on remote hosts specified by tags via SSH orchestration").action(this.handleRun.bind(this));
4633
- const runtimeCmd = this.program.command("runtime").alias("rt").description("print out a report of the runtime environment").action(this.handleRuntime.bind(this));
4634
- runtimeCmd.command("install").alias("i").description("install a temporary runtime environment on the local host if needed").action(this.handleRuntimeInstall.bind(this));
4635
4633
  this.program.command("tasks").description("list tasks available in a package or path").argument("[package-or-path...]", "npm package spec, installed package name, or local path").option("--task <name>", "filter to a specific task name").option("--json", "output should be json formatted").action(this.handleTasksList.bind(this));
4636
4634
  }
4637
4635
  async handleInventory(options, cmd) {
@@ -4811,16 +4809,6 @@ var Cli = class {
4811
4809
  logError("hostctl error:", e);
4812
4810
  }
4813
4811
  }
4814
- async handleRuntime(options, cmd) {
4815
- const opts = cmd.optsWithGlobals();
4816
- await this.loadApp(opts);
4817
- await this.app.printRuntimeReport();
4818
- }
4819
- async handleRuntimeInstall(options, cmd) {
4820
- const opts = cmd.optsWithGlobals();
4821
- await this.loadApp(opts);
4822
- await this.app.installRuntime();
4823
- }
4824
4812
  async handlePkgCreate(packageName, options) {
4825
4813
  await createPackage(packageName, options);
4826
4814
  }
@@ -7082,15 +7070,6 @@ ${successfullyUsedIdentityPaths}`);
7082
7070
  p = p.parent();
7083
7071
  }
7084
7072
  }
7085
- async printRuntimeReport() {
7086
- const nodeRuntime = new NodeRuntime(this.tmpDir);
7087
- const reportObj = {
7088
- nodePath: await nodeRuntime.nodePath(),
7089
- npmPath: await nodeRuntime.npmPath()
7090
- // summary: report?.getReport(),
7091
- };
7092
- this.info(reportObj);
7093
- }
7094
7073
  async promptPasswordInteractively(message = "Enter your password") {
7095
7074
  if (this.providedPassword !== void 0) {
7096
7075
  return this.providedPassword;
@@ -7109,11 +7088,6 @@ ${successfullyUsedIdentityPaths}`);
7109
7088
  this.providedPassword = await promptPassword({ message });
7110
7089
  return this.providedPassword;
7111
7090
  }
7112
- async installRuntime() {
7113
- this.info(`creating node runtime with ${this.tmpDir.toString()}`);
7114
- const nodeRuntime = new NodeRuntime(this.tmpDir);
7115
- await nodeRuntime.installIfNeeded();
7116
- }
7117
7091
  /**
7118
7092
  * Executes a command on the selected hosts
7119
7093
  *