Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"--dry-run" doesn't work properly when using category option #606

Open
ruzickap opened this issue Jun 5, 2024 · 0 comments
Open

"--dry-run" doesn't work properly when using category option #606

ruzickap opened this issue Jun 5, 2024 · 0 comments

Comments

@ruzickap
Copy link

ruzickap commented Jun 5, 2024

Hello

The new feature introduced in #369 - 'Document-level options "category"' doesn't work properly with --dry-run:

Example - let's have the following file:

  • install-manual-solution-2.md
---
shell: bash
cwd: /tmp
category: solution-2
---

Installation steps for Solution 2:

```sh
echo "[1] Install command in $PWD"
```

```sh
echo "[2] Install second command"
```

```sh { "category":"delete-solution" }
echo "Delete solution"
```

```sh { "category":"delete-solution" }
echo "Delete solution - second command"
```

If I run runme run --all --skip-prompts --category solution-2 --dry-run I got only first command in markdown document "processed":

❯ runme run --all --skip-prompts --category solution-2 --dry-run
#!/opt/homebrew/bin/bash

// run in "/tmp"

set -e -o pipefail
echo "[1] Install command in $PWD"

This bug is related to #580.

Thank you for looking at it...

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

No branches or pull requests

2 participants