casey / casey/just

Suggestion: alias for a module

Open
#2,216 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
35.8k
Forks
846
Avg merge
27m
Merged PRs (30d)
3

Description

I have checked the [module documentation](https://just.systems/man/en/chapter_56.html) and the [aliases documentation](https://just.systems/man/en/chapter_26.html).

It'd be awesome if we could do something like this
```sh
mod test ".config/commands/test.justfile"
alias t := test
```

And use it like `just t test-recipe-in-test-justfile`, i.e. alias the module itself. Previously, the hack around modules was as follows where you could do this:

```sh
alias d := docker
# Groups docker commands
docker recipe='' *ARGS='':
just -f ./config/commands/docker.justfile {{recipe}} {{ARGS}}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.