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

makefile like #49

Closed
mh-cbon opened this issue May 10, 2021 · 3 comments
Closed

makefile like #49

mh-cbon opened this issue May 10, 2021 · 3 comments

Comments

@mh-cbon
Copy link

mh-cbon commented May 10, 2021

is there good way to work with this like a makefile ?

something that would let me define a file like

test:
   let x = $.args.whatever
   await $`do some ${x}`
build:
  await $`some else`

The cli arguments would be parsed automatically, so if i call zx test --whatever I can access this value in $.args.whatever.

@antonmedv
Copy link
Collaborator

I think a task runner/build system is out of scope of zx package. But somebody definitely can derive from zx and built it on top of it.

Arguments parsing will come for sure.

@dusansimic
Copy link

You can do this using Just. You can specify the shell that will be used to run the script. It's missing argument parsing for now since zx doesn't support it but it's possible to run simple scripts.

@mh-cbon
Copy link
Author

mh-cbon commented May 11, 2021

it is perfect, thank you for that.

@mh-cbon mh-cbon closed this as completed May 11, 2021
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

3 participants