Skip to content

Feature request: Add "-n"/"--no-run" option #2

Description

@Hubro

I wanted to add a post-deploy step to my NixOS install that finds all my scriptr scripts and pre-compiles them, skipping the (potentially) long delay on first use.

However, I noticed there's no clear way to just build a scriptr script without also executing it.

It would be really practical to add a general flag for not executing the script, which can be combined with any other flag. This would make the -C/--clean-only flag superfluous, as --clean --no-run can be used instead. (Never mind, --clean-only also skips deps/build)

I realize I can probably mostly work around this by using cargo -Zscript build ... to warm the build cache and mostly remove the first run delay of scriptr, but a -n flag feels like a much cleaner option. Plus, it would properly cache the script, making even the first run blazing fast ⚡

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions