Skip to content

How to achieve platform overrides? (i.e. Windows override on the same recipe) #2585

Answered by aboisvert
Blankeos asked this question in Q&A
Discussion options

You must be logged in to vote

You can use attributes to enable tasks for specific operating systems:

[windows]
task1:
  dir

[linux]
task1:
  ls

[macos]
task1:
  ls

See https://just.systems/man/en/print.html#attributes

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by casey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants