@hasna/machines 0.0.25 → 0.0.26
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/index.js +2 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -11362,7 +11362,8 @@ manifestCommand.command("remove").description("Remove a machine from the manifes
|
|
|
11362
11362
|
console.log(JSON.stringify(manifestRemove(id), null, 2));
|
|
11363
11363
|
});
|
|
11364
11364
|
manifestCommand.command("add").description("Add or replace a machine in the fleet manifest").option("--id <id>", "Machine identifier").option("--platform <platform>", "linux | macos | windows").option("--workspace-path <path>", "Primary workspace path").option("--hostname <hostname>", "Machine hostname").option("--ssh-address <sshAddress>", "Machine SSH address").option("--tailscale-name <tailscaleName>", "Machine Tailscale DNS name").option("--connection <connection>", "local | ssh | tailscale").option("--bun-path <path>", "Bun executable directory").option("--tag <tag...>", "Machine tags").option("--package <name...>", "Desired packages").option("--app <spec...>", "Desired apps as name[:manager[:packageName]]").option("--file <spec...>", "File sync spec source:target[:copy|symlink]").option("--metadata <json>", "Machine metadata as JSON").option("--from-stdin", "Read the full MachineManifest JSON from stdin").action((options) => {
|
|
11365
|
-
|
|
11365
|
+
const fromStdin = Boolean(options["fromStdin"] || options["from-stdin"]);
|
|
11366
|
+
if (fromStdin) {
|
|
11366
11367
|
if (process.stdin.isTTY) {
|
|
11367
11368
|
console.error("error: --from-stdin requires piped input");
|
|
11368
11369
|
process.exit(1);
|