slopcannon 0.1.4 → 0.1.6

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.
Files changed (2) hide show
  1. package/dist/cli.js +15 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1353,6 +1353,10 @@ ${l}
1353
1353
  }
1354
1354
  } }).prompt();
1355
1355
 
1356
+ // src/tui.ts
1357
+ import fs from "fs";
1358
+ import path3 from "path";
1359
+
1356
1360
  // src/git.ts
1357
1361
  import path from "path";
1358
1362
  function exec(args, cwd) {
@@ -1794,6 +1798,15 @@ async function runTui() {
1794
1798
  Le("Worktree creation failed.");
1795
1799
  return null;
1796
1800
  }
1801
+ try {
1802
+ const envFiles = fs.readdirSync(info.root).filter((f) => f.startsWith(".env"));
1803
+ if (envFiles.length > 0) {
1804
+ for (const f of envFiles) {
1805
+ fs.copyFileSync(path3.join(info.root, f), path3.join(worktreePath, f));
1806
+ }
1807
+ R2.info(`Copied ${envFiles.join(", ")}`);
1808
+ }
1809
+ } catch {}
1797
1810
  const style = loadConfig().activationStyle;
1798
1811
  if (style === "cannon")
1799
1812
  await cannonActivation();
@@ -1942,7 +1955,7 @@ slopcannon - Create a git worktree. Launch Claude Code. Ship slop.
1942
1955
 
1943
1956
  Usage:
1944
1957
  slopcannon Interactive TUI
1945
- slopcannon cleanup Clean up merged/stale worktrees
1958
+ slopcannon cleanup|clean Clean up merged/stale worktrees
1946
1959
  slopcannon config Configure settings
1947
1960
  slopcannon --path-file <path> Write worktree path to file (for shell function)
1948
1961
  slopcannon --help Show this help
@@ -1963,7 +1976,7 @@ function parseArgs() {
1963
1976
  result.pathFile = args[++i];
1964
1977
  } else if (args[i] === "config") {
1965
1978
  result.config = true;
1966
- } else if (args[i] === "cleanup") {
1979
+ } else if (args[i] === "cleanup" || args[i] === "clean") {
1967
1980
  result.cleanup = true;
1968
1981
  } else if (!args[i].startsWith("-")) {
1969
1982
  console.error(`Unknown command: ${args[i]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slopcannon",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Create a git worktree. Launch Claude Code. Ship slop.",
5
5
  "type": "module",
6
6
  "bin": {