repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

cargo-tools: replace linky with lychee

6166f278637b7ff82f5759decef1e01a4fac913a

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (2)

justfile

Modified
14 14 # java files
15 15 javac -Werror -Xlint:all bootstripper.java
16 16 rm bootstripper.class
17 - # json files
17 + # json files
18 18 # markdown files
19 - linky --check --follow --urldecode README.md
19 + # links
20 + lychee .
21 22 # format config files
22 23 fmt:
23 24 # Justfiles
24 25 just --fmt --unstable
25 - # lua
26 + # lua
26 27 stylua --verify .
27 28 # shell files
28 29 # toml files

tools/cargo-tools.nu

Modified
2 2 # names of binaries in cargo must not necessarily be equal to the crate name.
3 3 # this table resolves the binary name of a crate.
4 4 # also, a crate can have more than one binary, but for the purpose of checking if a crate is
5 5 # already installed on the system, finding one binary is sufficient.
6 -# we also cannot use `cargo install --list` to search for the binary name, in case the crate
6 +# we also cannot use `cargo install --list` to search for the binary name, in case the crate
7 7 # is not installed yet
8 8 let cargo_crates = [
9 9 [name bin features];
32 32 ["xh" "xh" []]
33 33 ["comrak" "comrak" []]
34 34 # ["bandwhich" "bandwhich" []] masked until https://github.com/imsnif/bandwhich/issues/233
35 - ["linky" "linky" []]
35 + ["lychee" "lychee" []]
36 36 ["viu" "viu" []]
37 37 ["licensor" "licensor" []]
38 38 ["gib" "gib" []]
44 44 ["git-delta" "delta" []]
45 45 ["selene" "selene" ["--no-default-features"]]
46 46 ["stylua" "stylua" ["--features=lua52"]]
47 + ["taplo-cli" "taplo" []]
49 50 def so-features [] {
84 85 # crates, that are not even on crates.io are not likely to be packeged anywhere else.
85 86 # so we skip the check if the binary is already in path
86 - $cargo_git_crates | each { |crate|
87 + $cargo_git_crates | each { |crate|
87 88 cargo install --locked --git $crate
89 90 install-helix-editor