Document indentation rules (#1142)

This commit is contained in:
Casey Rodarmor 2022-03-23 21:20:36 -07:00 committed by GitHub
parent ddac064296
commit 1c9297452b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1562,6 +1562,10 @@ foo:
pwd pwd
``` ```
### Indentation
Recipe lines can be indented with spaces or tabs, but not a mix of both. All of a recipe's lines must have the same indentation, but different recipes in the same `justfile` may use different indentation.
### Multi-Line Constructs ### Multi-Line Constructs
Recipes without an initial shebang are evaluated and run line-by-line, which means that multi-line constructs probably won't do what you want. Recipes without an initial shebang are evaluated and run line-by-line, which means that multi-line constructs probably won't do what you want.