slopcannon 0.1.3 → 0.1.5
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/README.md +1 -1
- package/dist/cli.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Add to `~/.zshrc` so your shell cds into the worktree:
|
|
|
28
28
|
```bash
|
|
29
29
|
slopcannon() {
|
|
30
30
|
local tmpfile=$(mktemp /tmp/slopcannon.XXXXXX)
|
|
31
|
-
bunx slopcannon --path-file "$tmpfile"
|
|
31
|
+
bunx slopcannon --path-file "$tmpfile" "$@"
|
|
32
32
|
local p=$(cat "$tmpfile" 2>/dev/null)
|
|
33
33
|
rm -f "$tmpfile"
|
|
34
34
|
if [[ -n "$p" ]] && [[ -d "$p" ]]; then
|
package/dist/cli.js
CHANGED
|
@@ -1942,7 +1942,7 @@ slopcannon - Create a git worktree. Launch Claude Code. Ship slop.
|
|
|
1942
1942
|
|
|
1943
1943
|
Usage:
|
|
1944
1944
|
slopcannon Interactive TUI
|
|
1945
|
-
slopcannon cleanup
|
|
1945
|
+
slopcannon cleanup|clean Clean up merged/stale worktrees
|
|
1946
1946
|
slopcannon config Configure settings
|
|
1947
1947
|
slopcannon --path-file <path> Write worktree path to file (for shell function)
|
|
1948
1948
|
slopcannon --help Show this help
|
|
@@ -1963,8 +1963,12 @@ function parseArgs() {
|
|
|
1963
1963
|
result.pathFile = args[++i];
|
|
1964
1964
|
} else if (args[i] === "config") {
|
|
1965
1965
|
result.config = true;
|
|
1966
|
-
} else if (args[i] === "cleanup") {
|
|
1966
|
+
} else if (args[i] === "cleanup" || args[i] === "clean") {
|
|
1967
1967
|
result.cleanup = true;
|
|
1968
|
+
} else if (!args[i].startsWith("-")) {
|
|
1969
|
+
console.error(`Unknown command: ${args[i]}
|
|
1970
|
+
Run 'slopcannon --help' for usage.`);
|
|
1971
|
+
process.exit(1);
|
|
1968
1972
|
}
|
|
1969
1973
|
}
|
|
1970
1974
|
return result;
|