Skip to content

Renames version as run-version in shebang mode#19

Merged
TekWizely merged 2 commits intomasterfrom
issue/18
Jan 3, 2020
Merged

Renames version as run-version in shebang mode#19
TekWizely merged 2 commits intomasterfrom
issue/18

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