nu_scripts/sourced
Antoine Stevan ed9165fda1
fix removed commands (#645)
related to
- https://github.com/nushell/nushell/pull/10567
- https://github.com/nushell/nushell/pull/10668
- https://github.com/nushell/nushell/pull/10568

this PR removes mentions to removed commands from
https://github.com/nushell/nushell/pull/10567,
https://github.com/nushell/nushell/pull/10668 and
https://github.com/nushell/nushell/pull/10568.

the main change has been introduced with
```nushell
sd 'random integer' 'random int' **/*.nu
```

running `rg "$nothing|random integer|to xml .* --pretty"` gives
- before
```
modules/random-list/random-list.nu
85:# Generate a random integer list.
95:        random integer $range

modules/fun/wordle.nu
11:  let word = ($words | get (random integer 0..($words | length)) | get column1)

benchmarks/random-bytes.nu
5:        | each { random integer }

sourced/misc/password_generator/ReadMe.md
84:Obviously you can just use the `random chars` or `random integers` commands but I like to have words I can read in my passwords, and I think those generated by this script have sufficient entropy.

sourced/misc/password_generator/nupass.nu
43:  let random_numbers = (1..$words | par-each { |i| (random integer 0..99) } --threads $threads)
71:    return (0..($words - 1) | each { |it| (random integer 0..99 | into string) + ($random_words | get $it) } | reduce { |it
, acc| $acc + $it })
92:    | get (random integer 1..($numlines))
99:        let rint = (random integer 1..4)
119:    | get (random integer 0..($symbolcharslen - 1))
```
- after
```
modules/random-list/random-list.nu
85:# Generate a random integer list.

sourced/misc/password_generator/ReadMe.md
84:Obviously you can just use the `random chars` or `random integers` commands but I like to have words I can read in my passwords, and I think those generated by this script have sufficient entropy.
```
2023-10-19 19:35:23 +02:00
..
api_wrappers refactor: (#418) 2023-04-25 17:56:25 -05:00
cool-oneliners Replace deprecated fetch with http get (#530) 2023-06-15 06:13:39 -05:00
filesystem Improved CDPATH (#644) 2023-10-19 06:35:32 -05:00
fun refactor: (#418) 2023-04-25 17:56:25 -05:00
github refactor: (#418) 2023-04-25 17:56:25 -05:00
gitlab Replace deprecated hash base64 with decode (#531) 2023-06-15 06:14:41 -05:00
imaging refactor: (#418) 2023-04-25 17:56:25 -05:00
misc fix removed commands (#645) 2023-10-19 19:35:23 +02:00
nu_101 Replace use of $nothing with null (#621) 2023-09-26 18:52:49 +02:00
progress_bar Update bar function (#589) 2023-09-01 07:18:21 -05:00
webscraping Replace deprecated fetch with http get (#530) 2023-06-15 06:13:39 -05:00
fehbg.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
README.md refactor: (#418) 2023-04-25 17:56:25 -05:00
run-c-cpp.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
temp.nu Move random/into decimal to random/into float (#606) 2023-09-20 19:13:52 +02:00
TODO.md use $env. instead of let-env (#543) 2023-07-01 10:40:16 +02:00
todo.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
typeof.nu add a typeof command (#597) 2023-09-10 08:13:04 -05:00
update_hosts.nu Replace deprecated fetch with http get (#530) 2023-06-15 06:13:39 -05:00
update-path.nu use $env. instead of let-env (#543) 2023-07-01 10:40:16 +02:00

Helpers

Commands to make your life easier.

How to use

Execute following snippet at any time to be able to run the commands in the scripts:

source './path/to/script.nu'

With ./path/to/... being the path to the script you want to utilize.