1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

🐛 fix a couple of parser errors (#782)

This is some legwork to the CI
- [x] fix one `get-row.nu` before 0.60, just because it was easy
- [x] `modules/formats/to-ini.nu`
- [x] `modules/git/git-v2.nu`
- [x] `modules/git/git.nu`
- [x] `modules/log/log.nu`
- [x] `modules/weather/weatherdark.nu`
- [x] `sourced/api_wrappers/worlframalpha.nu`
- [x] `sourced/cool-oneliners/pwd-short.nu`
- [x] `sourced/github/branch-protections/branch-protections.nu`
- [x] `sourced/gitlab/gitlab.nu`
- [x] `sourced/misc/nu_defs.nu`
- [x] `sourced/update-path.nu`
- [x] `sourced/webscraping/shell_starts.nu`
I moved some auto-generated commands:
- [x] `ack` 
- [x] `as`
- [x] `curl`
- [x] `fsarprc`
- [x] `fsarpri`
- [x] `godoc`
- [x] `mysql` 
- [x] and `xgettext` 
to custom, so we keep the modifications.
I had to comment some of the flags because the parser is not able to
parse some flags. Those are explained in comments
This commit is contained in:
Auca Coyan 2024-03-10 16:05:01 -03:00 committed by GitHub
parent 1ccc379f38
commit bc6273d971
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 232 additions and 219 deletions

View file

@ -4,7 +4,7 @@ export def "to ini" [] {
| update value {|row|
$row.value
| transpose key value
| format '{key}={value}'
| format pattern "{key}={value}"
| prepend $"[($row.key)]"
| str join (char nl)
}

View file

@ -1,4 +1,4 @@
use argx.nu
use ../argx/argx.nu
def agree [
prompt

View file

@ -66,7 +66,7 @@ def "nu-complete git branches" [] {
export def gl [
commit?: string@"nu-complete git log"
--verbose(-v):bool
--verbose(-v)
--num(-n):int=32
] {
if ($commit|is-empty) {

View file

@ -2,7 +2,7 @@ def logtime [msg act] {
let start = (date now)
let result = (do $act)
let period = ((date now) - $start
| into duration -c ns
| into duration --unit ns
| into string
| str replace ' ' '')

View file

@ -27,7 +27,7 @@ def get_location [index: int] {
}
# dark sky
def http get_api [loc] {
def "http get_api" [loc] {
let apiKey = "ds_api_key"
let options = "?lang=en&units=si&exclude=minutely,hourly,flags"