@theholocron/cli 5.0.0-alpha.415 → 5.0.0-alpha.416

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/cli.mjs CHANGED
@@ -17250,6 +17250,14 @@ const probeArgs = (y) => y.positional("provider", {
17250
17250
  }).option("files", {
17251
17251
  type: "boolean",
17252
17252
  describe: "`tasks names`: also report old names that are part of a workflow file name (`delivery.build.yml`)"
17253
+ }).option("only", {
17254
+ type: "string",
17255
+ array: true,
17256
+ nargs: 1,
17257
+ describe: "`1password export-environment`: export only this variable; repeat for more"
17258
+ }).option("copy", {
17259
+ type: "boolean",
17260
+ describe: "`1password export-environment`: put the variables on the clipboard instead of a file"
17253
17261
  }).option("yes", {
17254
17262
  type: "boolean",
17255
17263
  default: false,
@@ -19816,7 +19824,7 @@ async function runProbeCommand(input) {
19816
19824
  dryRun: input.dryRun ?? false,
19817
19825
  yes: input.yes ?? false,
19818
19826
  secrets: tokens,
19819
- print,
19827
+ print: input.print ?? (probe.reportsTo === "stderr" ? (line) => console.error(line) : print),
19820
19828
  ...input.interactive !== void 0 ? { interactive: input.interactive } : {},
19821
19829
  ...input.confirm ? { confirm: input.confirm } : {},
19822
19830
  ...input.onInterrupt ? { onInterrupt: input.onInterrupt } : {}
@@ -19835,7 +19843,9 @@ const probeCommand = {
19835
19843
  const args = [
19836
19844
  ...(argv.args ?? []).map(String),
19837
19845
  ...argv.warn ? ["--warn"] : [],
19838
- ...argv.files ? ["--files"] : []
19846
+ ...argv.files ? ["--files"] : [],
19847
+ ...(argv.only ?? []).flatMap((name) => ["--only", String(name)]),
19848
+ ...argv.copy ? ["--copy"] : []
19839
19849
  ];
19840
19850
  if ((await runProbeCommand({
19841
19851
  loaded,