shell-dsl 0.0.5 → 0.0.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.
package/README.md CHANGED
@@ -441,7 +441,7 @@ import { builtinCommands } from "shell-dsl/commands";
441
441
  Or import individually:
442
442
 
443
443
  ```ts
444
- import { echo, cat, grep, wc, cp, mv, touch, tee, tree } from "shell-dsl/commands";
444
+ import { echo, cat, grep, wc, cp, mv, touch, tee, tree, find } from "shell-dsl/commands";
445
445
  ```
446
446
 
447
447
  | Command | Description |
@@ -463,6 +463,7 @@ import { echo, cat, grep, wc, cp, mv, touch, tee, tree } from "shell-dsl/command
463
463
  | `touch` | Create empty files or update timestamps (`-c` no-create) |
464
464
  | `tee` | Duplicate stdin to stdout and files (`-a` append) |
465
465
  | `tree` | Display directory structure as tree (`-a` all, `-d` dirs only, `-L <n>` depth) |
466
+ | `find` | Search for files (`-name`, `-iname`, `-type f\|d`, `-maxdepth`, `-mindepth`) |
466
467
  | `test` / `[` | File and string tests (`-f`, `-d`, `-e`, `-z`, `-n`, `=`, `!=`) |
467
468
  | `true` | Exit with code 0 |
468
469
  | `false` | Exit with code 1 |
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "shell-dsl",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "commonjs"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "shell-dsl",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module"
5
5
  }
@@ -0,0 +1,2 @@
1
+ import type { Command } from "../src/types.ts";
2
+ export declare const find: Command;
@@ -18,4 +18,5 @@ export { cp } from "./cp.ts";
18
18
  export { mv } from "./mv.ts";
19
19
  export { tee } from "./tee.ts";
20
20
  export { tree } from "./tree.ts";
21
+ export { find } from "./find.ts";
21
22
  export declare const builtinCommands: Record<string, Command>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shell-dsl",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
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",