mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
20 lines
493 B
TOML
20 lines
493 B
TOML
[metadata]
|
|||
|
|
name = "rustup"
|
||
|
|
description = "Manage Rust toolchains"
|
||
|
|
requirements = ["rustup"]
|
||
|
|
|
||
|
|
[source]
|
||
|
|
command = "rustup toolchain list"
|
||
|
|
|
||
|
|
[preview]
|
||
|
|
command = "rustup run '{split: :0}' rustc --version --verbose 2>/dev/null"
|
||
|
|
|
||
|
|
[actions.default]
|
||
|
|
description = "Set the selected toolchain as default"
|
||
|
|
command = "rustup default '{split: :0}'"
|
||
|
|
mode = "execute"
|
||
|
|
|
||
|
|
[actions.uninstall]
|
||
|
|
description = "Uninstall the selected toolchain"
|
||
|
|
command = "rustup toolchain uninstall '{split: :0}'"
|
||
|
|
mode = "execute"
|