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

Add shell setting #525

Merged
merged 8 commits into from
Nov 11, 2019
Merged

Add shell setting #525

merged 8 commits into from
Nov 11, 2019

Conversation

casey
Copy link
Owner

@casey casey commented Nov 11, 2019

Add a set SETTING := VALUE construct.

This construct is intended to be extended as needed with new settings,
but for now we're starting with set shell := [COMMAND, ARG1, ...],
which allows setting the shell to use for recipe and backtick execution
in a justfile.

One of the primary reasons for adding this feature is to have a better
story on windows, where users are forced to scrounge up an sh binary
if they want to use just. This should allow them to use cmd.exe or
powershell in their justfiles, making just optionally dependency-free.

Add a `set SETTING := VALUE` construct.

This construct is intended to be extended as needed with new settings,
but for now we're starting with `set shell := [COMMAND, ARG1, ...]`,
which allows setting the shell to use for recipe and backtick execution
in a justfile.

One of the primary reasons for adding this feature is to have a better
story on windows, where users are forced to scrounge up an `sh` binary
if they want to use `just`. This should allow them to use cmd.exe or
powershell in their justfiles, making just optionally dependency-free.
@casey casey merged commit e80bf34 into master Nov 11, 2019
@casey casey deleted the setting branch November 11, 2019 07:17
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.

None yet

1 participant