-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: `mise format` * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
507ee27
commit 6c28f1f
Showing
10 changed files
with
258 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# `mise format` | ||
|
||
- **Usage**: `mise format [-a --all]` | ||
- **Aliases**: `fmt` | ||
- **Source code**: [`src/cli/format.rs`](https://github.com/jdx/mise/blob/main/src/cli/format.rs) | ||
|
||
Formats mise.toml | ||
|
||
## Flags | ||
|
||
### `-a --all` | ||
|
||
Format all files from the current directory | ||
|
||
Examples: | ||
|
||
mise format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -424,6 +424,14 @@ The "--" separates runtimes from the commands to pass along to the subprocess."# | |
arg "[TOOL@VERSION]..." help="Tool(s) to start e.g.: node@20 [email protected]" var=true | ||
arg "[COMMAND]..." help="Command string to execute (same as --command)" var=true | ||
} | ||
cmd "format" help="Formats mise.toml" { | ||
alias "fmt" | ||
after_long_help r"Examples: | ||
|
||
$ mise format | ||
" | ||
flag "-a --all" help="Format all files from the current directory" | ||
} | ||
cmd "generate" subcommand_required=true help="[experimental] Generate files for various tools/services" { | ||
alias "gen" | ||
alias "g" hide=true | ||
|
Oops, something went wrong.