Skip to content

Commit

Permalink
Mention that aliases are recursive
Browse files Browse the repository at this point in the history
Instead of duplicating portions of commands that are used identically
across many aliases, the user can instead reuse any previously defined
aliases.
  • Loading branch information
har7an committed Aug 4, 2022
1 parent 333478d commit e8cd6f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/doc/src/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ c = "check"
t = "test"
r = "run"
rr = "run --release"
recursive_example = "rr --example recursions"
space_example = ["run", "--release", "--", "\"command list\""]

[build]
Expand Down Expand Up @@ -335,6 +336,14 @@ r = "run"

Aliases are not allowed to redefine existing built-in commands.

Aliases are recursive:

```toml
[alias]
rr = "run --release"
recursive_example = "rr --example recursions"
```

#### `[build]`

The `[build]` table controls build-time operations and compiler settings.
Expand Down

0 comments on commit e8cd6f4

Please sign in to comment.