slopcannon 0.1.9 → 0.1.10
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.js +13 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1994,6 +1994,7 @@ Usage:
|
|
|
1994
1994
|
slopcannon cleanup|clean Clean up merged/stale worktrees
|
|
1995
1995
|
slopcannon config Configure settings
|
|
1996
1996
|
slopcannon --path-file <path> Write worktree path to file (for shell function)
|
|
1997
|
+
slopcannon --launcher-file <path> Write selected launcher to file
|
|
1997
1998
|
slopcannon --help Show this help
|
|
1998
1999
|
|
|
1999
2000
|
What it does:
|
|
@@ -2010,6 +2011,8 @@ function parseArgs() {
|
|
|
2010
2011
|
result.version = true;
|
|
2011
2012
|
} else if (args[i] === "--path-file" && i + 1 < args.length) {
|
|
2012
2013
|
result.pathFile = args[++i];
|
|
2014
|
+
} else if (args[i] === "--launcher-file" && i + 1 < args.length) {
|
|
2015
|
+
result.launcherFile = args[++i];
|
|
2013
2016
|
} else if (args[i] === "config") {
|
|
2014
2017
|
result.config = true;
|
|
2015
2018
|
} else if (args[i] === "cleanup" || args[i] === "clean") {
|
|
@@ -2078,6 +2081,16 @@ Install one of them before running slopcannon.`);
|
|
|
2078
2081
|
if (args.pathFile) {
|
|
2079
2082
|
await Bun.write(args.pathFile, worktreePath);
|
|
2080
2083
|
}
|
|
2084
|
+
if (args.launcherFile) {
|
|
2085
|
+
await Bun.write(args.launcherFile, launcher + `
|
|
2086
|
+
`);
|
|
2087
|
+
}
|
|
2088
|
+
if (args.pathFile || args.launcherFile) {
|
|
2089
|
+
process.exit(0);
|
|
2090
|
+
}
|
|
2091
|
+
process.stdin.removeAllListeners();
|
|
2092
|
+
process.stdin.pause();
|
|
2093
|
+
process.stdin.unref();
|
|
2081
2094
|
const launchCommand = launcher === "codex" ? ["codex", "--yolo"] : ["claude", "--dangerously-skip-permissions"];
|
|
2082
2095
|
const proc = Bun.spawn(launchCommand, {
|
|
2083
2096
|
cwd: worktreePath,
|