]> git.proxmox.com Git - cargo.git/commit
Auto merge of #10935 - har7an:patch-1, r=epage
authorbors <bors@rust-lang.org>
Thu, 4 Aug 2022 13:59:45 +0000 (13:59 +0000)
committerbors <bors@rust-lang.org>
Thu, 4 Aug 2022 13:59:45 +0000 (13:59 +0000)
commit5ac9be2eeac607c66a4f7f962ad5934d2bfa54de
tree3580471a0f6b5968e071235b976c50fa76fbcbe9
parent7259757dc618479363aca6176ee5e76fd534e68c
parente8cd6f4bcfad96b1a81259f4d55584b6fa989610
Auto merge of #10935 - har7an:patch-1, r=epage

Mention that aliases are recursive

Instead of duplicating portions of commands that are used identically across many aliases, the user can instead reuse any previously defined aliases.

### What does this PR try to resolve?

Today I started working with [`xtask`](https://github.com/matklad/cargo-xtask/), which is a build system based on a simple cargo alias:

```toml
[alias]
xtask = "run --package xtask --"
```

Since the word "xtask" is rather difficult to type in my opinion (at least my left hand struggles quite a bit) I wanted to add another alias, `x` as a shorthand (similar to what `build`, `run`, etc. have by default). Thereby I discovered that I needn't replicate the whole alias, because aliases are recursive. I consulted the docs and couldn't find a mention of this, hence I'm adding it as part of this PR so other users can discover it.

### How should we test and review this PR?

I don't think this requires a separate test, it's a minor change to the documentation only.

### Additional information