8000 feat: add "run" command to invoke a compiler by sweetbbak · Pull Request #105 · tristanisham/zvm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add "run" command to invoke a compiler #105

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

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

sweetbbak
Copy link
Contributor
@sweetbbak sweetbbak commented Nov 12, 2024

this commit adds a "run" command to zvm that allows you to invoke a zig compiler via its version name.

for example:

zvm run 0.14.0 build run --help

which is useful if you switch around projects a lot and just want to run a single command without symlinking the version first. I also added the Go install command to the readme.
image

this commit adds a "run" command to zvm that allows you to invoke a zig
compiler via its version name. for example: `zvm run 0.14.0 build run --help`
which is useful if you switch around projects a lot and just want to
run a single command without symlinking the version first.
@tristanisham tristanisham merged commit 1a523a6 into tristanisham:master Nov 14, 2024
@tristanisham
Copy link
Owner

I had to modify your PR a bit. It didn't cover some edge cases and you used the wrong function to check for symlink validity. Overall though, good PR. Make sure to follow the Go style guide in the future.

@sweetbbak
Copy link
Contributor Author

Gotcha. It should be calling the binary directly so shouldn't it be just a regular executable and not a symlink? or is there some case where it could be either? It seems like calling zvm run bin would be the only case where it is a symlink

@tristanisham
Copy link
Owner
tristanisham commented Nov 14, 2024 via email

@sweetbbak
Copy link
Contributor Author 768E

Ah, I see. I'll check it out, thanks.

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.

2 participants
0