Skip to content

Preview 2#2

Merged
irammini merged 9 commits into
mainfrom
dev
Feb 11, 2026
Merged

Preview 2#2
irammini merged 9 commits into
mainfrom
dev

Conversation

@irammini

@irammini irammini commented Feb 5, 2026

Copy link
Copy Markdown
Member

No description provided.

- Implement dynamic environment variable resolution using `$(cmd)` syntax in `src/config.rs`.
- Add `run_if` and `skip_if` fields to `RunnerTask::Full` in `src/runner/task.rs`.
- Implement conditional logic in `src/runner/mod.rs` to skip tasks based on shell command success/failure.
- Ensure conditional checks run silently using `CaptureMode::Buffer`.
…cat)dd glob pattern support to portable commands (rm, cp, mv, ls, cat)
@irammini

Copy link
Copy Markdown
Member Author

This commit introduces cross-platform glob expansion for portable commands p:rm, p:cp, p:mv, p:ls, and p:cat.
Users can now use wildcards like *.tmp or src/**/*.rs directly in their task definitions.

Key changes:

  • Added expand_globs helper in src/runner/common.rs which uses the glob crate to expand arguments.
  • Updated handlers in src/runner/handler/ (rm.rs, cp.rs, mv.rs, ls.rs, cat.rs) to use expand_globs.
  • p:ls now supports listing multiple directories/files and sorting output.
  • p:cat fixed a bug where the first argument was ignored and now concatenates multiple files properly.
  • p:mv and p:cp now support multiple sources moving/copying to a directory.
  • Added unit tests for expand_globs in src/runner/common.rs.

@irammini

Copy link
Copy Markdown
Member Author

In this commit:

Update src/runner/cache.rs to include a deterministic hash of the environment variables when calculating the task's cache key. This ensures that changes to environment variables (e.g., in p.toml or .env) correctly invalidate the cache and trigger a rebuild.

  • Modified compute_hash to accept env: &HashMap<String, String>.
  • Updated is_up_to_date and save_cache to pass the environment map.
  • Updated recursive_runner in src/runner/mod.rs to propagate the configuration environment.

@irammini

Copy link
Copy Markdown
Member Author

Well probably that's all for preview 2

@irammini irammini merged commit f0188fb into main Feb 11, 2026
13 of 14 checks passed
@irammini irammini deleted the dev branch February 11, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant