dotfiles
bugabingas dorkfiles
owned by bugabinga
nushell: update to version 0.64.0
parser changed slightly, in maybe buggy ways.
reported issues and worked around the changes
9d806f8f149eb75c7046d8f90d845e8b2c9c0556
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
Browse filesCompare with HEAD
Changed files (5)
nushell/completions/svn-completions.nu
Addednew file mode 100644 1 +def "complete svn subcommands" [] {
4 + | skip until { | line |
$line | str starts-with
"Available subcommands:" }
6 + |
each { |line|
$line | str trim }
7 + | take until { |line|
$line | empty? }
14 +def "complete svn add paths" [] {
15 + ^svn status --depth files
17 + | parse
"{mode} {file}" 23 +def "complete svn revert paths" [] {
24 + ^svn status --depth files
26 + | parse
"{mode} {file}" 32 +def "complete svn depth" [] { [
'empty',
'files',
'immediates',
'infinity'] }
34 +def "complete svn changelists" [] {
35 + ^svn status --depth files
37 + | parse
"--- Changelist '{changelist}':" 38 + | get --ignore-errors changelist
44 + subcommand?: string@
"complete svn subcommands" 52 +export extern "svn help" [
53 + subcommand?: string@
"complete svn subcommands" 65 +export extern "svn status" [
69 + --depth: string@
"complete svn depth" 70 + --revision(-r): string
83 + --changelist:string@
"complete svn changelists" 91 +export extern "svn add" [
92 + paths: path@
"complete svn add paths" 95 + --depth: string@
"complete svn depth" 105 +export extern "svn revert" [
106 + paths: path@
"complete svn revert paths" 109 + --depth: string@
"complete svn depth" 111 + --changelist: string@
"complete svn changelists" 120 +export extern "svn checkout" [
121 + ...url_with_rev:string
132 + --depth: string@
"complete svn depth" nushell/completions/svn.complete.nu
Deleteddeleted file mode 100644 1 -def "complete svn subcommands" [] {
4 - | skip until { | line |
$line | str starts-with
"Available subcommands:" }
6 - |
each { |line|
$line | str trim }
7 - | take until { |line|
$line | empty? }
14 -def "complete svn add paths" [] {
15 - ^svn status --depth files
17 - | parse
"{mode} {file}" 23 -def "complete svn revert paths" [] {
24 - ^svn status --depth files
26 - | parse
"{mode} {file}" 32 -def "complete svn depth" [] { [
'empty',
'files',
'immediates',
'infinity'] }
34 -def "complete svn changelists" [] {
35 - ^svn status --depth files
37 - | parse
"--- Changelist '{changelist}':" 38 - | get --ignore-errors changelist
44 - subcommand?: string@
"complete svn subcommands" 52 -export extern "svn help" [
53 - subcommand?: string@
"complete svn subcommands" 65 -export extern "svn status" [
69 - --depth: string@
"complete svn depth" 70 - --revision(-r): string
83 - --changelist:string@
"complete svn changelists" 91 -export extern "svn add" [
92 - paths: path@
"complete svn add paths" 95 - --depth: string@
"complete svn depth" 105 -export extern "svn revert" [
106 - paths: path@
"complete svn revert paths" 109 - --depth: string@
"complete svn depth" 111 - --changelist: string@
"complete svn changelists" 120 -export extern "svn checkout" [
121 - ...url_with_rev:string
132 - --depth: string@
"complete svn depth" 3 -let-env WIN32? =
$nu.os-info.name =~
"windows" 3 +let-env WIN32? = (
$nu.os-info.name =~
"windows" )
4 4 let-env NURC_DIR = (
$nu.config-path | path expand | path dirname )
5 5 let-env DOTFILES = (
$env.NURC_DIR | path join
".." | path expand )
6 6 let-env WORKSPACE =
if $env.WIN32? {
"W:/" }
else {
"~/Workspace" | path expand }
tools/cargo-tools.nu
Modified 9 - [
"sccache" "sccache" []]
10 - [
"nu" "nu" [
"--features=extra"]]
15 - [
"choose",
"choose", []]
17 - [
"onefetch" "onefetch" []]
19 - [
"mdcat" "mdcat" []]
20 - [
"cargo-update" "cargo-install-update" []]
21 - [
"hexyl" "hexyl" []]
22 - [
"hyperfine" "hyperfine" []]
23 - [
"so" "so" so-features]
24 - [
"tealdeer" "tldr" []]
25 - [
"tokei" "tokei" []]
27 - [
"pastel" "pastel" []]
28 - [
"diskonaut" "diskonaut" []]
29 - [
"menyoki" "menyoki" []]
30 - [
"zoxide" "zoxide" []]
33 - [
"comrak" "comrak" []]
35 - [
"lychee" "lychee" []]
37 - [
"licensor" "licensor" []]
39 - [
"silicon" "silicon" []]
44 - [
"git-delta" "delta" []]
45 - [
"selene" "selene" [
"--no-default-features"]]
46 - [
"stylua" "stylua" [
"--features=lua52"]]
47 - [
"taplo-cli" "taplo" []]
8 + [ name bin features];
9 + [
"sccache" "sccache" [] ]
10 + [
"nu" "nu" [
"--features" "extra" ] ]
13 + [
"ouch" "ouch" [] ]
14 + [
"fd-find" "fd" [] ]
15 + [
"choose",
"choose", [] ]
16 + [
"ripgrep" "rg" [] ]
17 + [
"onefetch" "onefetch" [] ]
19 + [
"mdcat" "mdcat" [] ]
20 + [
"cargo-update" "cargo-install-update" [] ]
21 + [
"hexyl" "hexyl" [] ]
22 + [
"hyperfine" "hyperfine" [] ]
23 + [
"so" "so" (so-features) ]
24 + [
"tealdeer" "tldr" [] ]
25 + [
"tokei" "tokei" [] ]
27 + [
"pastel" "pastel" [] ]
28 + [
"diskonaut" "diskonaut" [] ]
29 + [
"menyoki" "menyoki" [] ]
30 + [
"zoxide" "zoxide" [] ]
31 + [
"grex" "grex" [] ]
33 + [
"comrak" "comrak" [] ]
35 + [
"lychee" "lychee" [] ]
37 + [
"licensor" "licensor" [] ]
39 + [
"silicon" "silicon" [] ]
40 + [
"bottom" "btm" [] ]
42 + [
"just" "just" [] ]
43 + [
"mdsh" "mdsh" [] ]
44 + [
"git-delta" "delta" [] ]
45 + [
"selene" "selene" [
"--no-default-features" ] ]
46 + [
"stylua" "stylua" [
"--features" "lua52" ] ]
47 + [
"taplo-cli" "taplo" [] ]
48 + [
"coreutils" "coreutils" (coreutils-features) ]
51 +def coreutils-features [] {
53 + [
"--features" "windows" ]
55 + [
"--features" "unix" ]
50 59 def so-features [] {
52 - [
"--no-default-features" "--features=windows"]
61 + [
"--no-default-features" "--features" "windows" ]
tools/parsing-equals-test.nu
Addednew file mode 100644 2 + assert-is-a {
"" } string
3 + assert-is-a {
"=" } string
4 + assert-is-a {
"-" } string
5 + assert-is-a {
"-=" } string
6 + assert-is-a {
"-=-" } string
7 + assert-is-a {
"=-" } string
9 + assert-is-a { [
""] } list<string>
10 + assert-is-a { [
"="] } list<string>
11 + assert-is-a { [
"-"] } list<string>
12 + assert-is-a { [
"-="] } list<string>
19 + assert-is-a { [
"= "] } list<string>
20 + assert-is-a { [
"="] } list<string>
21 + assert-is-a { [
"=" ] } list<string>
22 + assert-is-a { [
"=" ] } list<string>
24 + assert-is-a { [
"=OK" ] } list<string>
29 + expected_type: string
31 + let span = (metadata
$code).span;
32 + let actual_type = (
do $code | describe )
33 + if $actual_type ==
$expected_type {
34 + echo $
"(char sun)\t(ansi green_bold)OK(ansi reset)\t($actual_type)" 37 + msg: $
"(char cloud)\t(ansi red_bold)FAIL(ansi reset)",
39 + text: $
"expected a `($expected_type)` but got a `($actual_type)`",