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

Renames version as run-version in shebang mode #19

Merged
merged 2 commits into from
Jan 3, 2020
Merged

Conversation

TekWizely
Copy link
Owner

Instead of just hiding the version command in shebang mode, I decided to rename it.

In regular mode, the command will still be available as version:

$ run -r my-runfile version

run v0.0.0

But it shebang mode, the command I will be available under run-version:

$ ./my-runfile-app run-version

run v0.0.0

This leaves your Runfile free to define its own version command

Runfile

version:
    echo "my-runfile-app v1.2.3"

output

$ ./my-runfile-app version

my-runfile-app v1.2.3

$ ./my-runfile-app run-version

run v0.0.0

Fixes #18

@TekWizely TekWizely merged commit 584e19b into master Jan 3, 2020
@TekWizely TekWizely deleted the issue/18 branch January 3, 2020 19:19
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.

Hide Version Command in Shebang Mode
1 participant