shell-dsl 0.0.3 → 0.0.4

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 CHANGED
@@ -440,7 +440,7 @@ import { builtinCommands } from "shell-dsl/commands";
440
440
  Or import individually:
441
441
 
442
442
  ```ts
443
- import { echo, cat, grep, wc, cp, mv, touch, tee } from "shell-dsl/commands";
443
+ import { echo, cat, grep, wc, cp, mv, touch, tee, tree } from "shell-dsl/commands";
444
444
  ```
445
445
 
446
446
  | Command | Description |
@@ -461,6 +461,7 @@ import { echo, cat, grep, wc, cp, mv, touch, tee } from "shell-dsl/commands";
461
461
  | `mv` | Move/rename files/directories (`-n` no-clobber) |
462
462
  | `touch` | Create empty files or update timestamps (`-c` no-create) |
463
463
  | `tee` | Duplicate stdin to stdout and files (`-a` append) |
464
+ | `tree` | Display directory structure as tree (`-a` all, `-d` dirs only, `-L <n>` depth) |
464
465
  | `test` / `[` | File and string tests (`-f`, `-d`, `-e`, `-z`, `-n`, `=`, `!=`) |
465
466
  | `true` | Exit with code 0 |
466
467
  | `false` | Exit with code 1 |
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "shell-dsl",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "commonjs"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "shell-dsl",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module"
5
5
  }
@@ -17,4 +17,5 @@ export { touch } from "./touch.ts";
17
17
  export { cp } from "./cp.ts";
18
18
  export { mv } from "./mv.ts";
19
19
  export { tee } from "./tee.ts";
20
+ export { tree } from "./tree.ts";
20
21
  export declare const builtinCommands: Record<string, Command>;
@@ -0,0 +1,2 @@
1
+ import type { Command } from "../src/types.ts";
2
+ export declare const tree: Command;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shell-dsl",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "A sandboxed shell-style DSL for running scriptable command pipelines in-process without host OS access",
5
5
  "author": "ricsam <oss@ricsam.dev>",
6
6
  "license": "MIT",