Skip to content

Commit bc6273d

Browse files
authored
🐛 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
1 parent 1ccc379 commit bc6273d

File tree

24 files changed

+232
-219
lines changed

24 files changed

+232
-219
lines changed

before_v0.60/stdlib_candidate/get-row.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ def get-row [
33
row_num:int # A 0 indexed row
44
] {
55

6-
nth $row_num | table -n $row_num
6+
nth $row_num | table --index $row_num
77
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# copied from auto-generated completions
2+
3+
extern "ack" [
4+
--ignore-case(-i) # Ignore case
5+
--smart-case # Ignore case when pattern contains no uppercase
6+
--no-smart-case # Dont ignore case
7+
--invert-match(-v) # Invert match
8+
--word-regexp(-w) # Match only whole words
9+
--literal(-Q) # Quote all metacharacters
10+
--lines # Only print line(s) NUM of each file
11+
--files-with-matches(-l) # Only print filenames containing matches
12+
--files-without-matches(-L) # Only print filenames with no matches
13+
--output # Output the evaluation of Perl expression for each line
14+
--passthru # Print all lines
15+
--match # Specify pattern explicitly
16+
--max-count(-m) # Stop searching in each file after NUM matches
17+
--with-filename(-H) # Print the filename for each match
18+
--no-filename(-h) # Suppress the prefixing filename on output
19+
--count(-c) # Show number of lines matching per file
20+
--column # Show column number of first match
21+
--no-column # Dont show column number of first match
22+
--print0 # Print null byte as separator between filenames
23+
--pager # Pipes all ack output through command
24+
--no-pager # Do not send output through a pager
25+
--heading # Prints a filename heading above files results
26+
--no-heading # Dont print a filename heading above files results
27+
--break # Print a break between results
28+
--no-break # Dont print a break between results
29+
--group # Filename heading and line break between results
30+
--no-group # No filename heading and no line breaks between results
31+
--color # Highlight the matching text
32+
--no-colour # Dont highlight the matching text
33+
--color-filename # Set the color for filenames
34+
--color-match # Set the color for matches
35+
--color-lineno # Set the color for line numbers
36+
--flush # Flush output immediately
37+
--sort-files # Sort the found files lexically
38+
--show-types # Show which types each file has
39+
--files-from # Read the list of files to search from file
40+
--ignore-directory # Ignore directory
41+
--no-ignore-directory # Dont ignore directory
42+
--ignore-file # Add filter for ignoring files
43+
--recurse(-R) # Recurse into subdirectories
44+
--no-recurse(-n) # No descending into subdirectories
45+
--follow # Follow symlinks
46+
--no-follow # Dont follow symlinks
47+
--known-types(-k) # Include only recognized files
48+
--type # Include only X files
49+
--type-set # Replaces definition of type
50+
--type-add # Specify definition of type
51+
--type-del # Removes all filters associated with type
52+
--no-env # Ignores environment variables and ackrc files
53+
--ackrc # Specifies location of ackrc file
54+
--ignore-ack-defaults # Ignore default definitions ack includes
55+
--create-ackrc # Outputs default ackrc
56+
--help(-?) # Shows help
57+
--help-types # Shows all known types
58+
--dump # Dump information on which options are loaded
59+
--filter # Forces ack to treat input as a pipe
60+
--no-filter # Forces ack to treat input as tty
61+
--man # Shows man page
62+
--version # Displays version and copyright
63+
--thpppt # Bill the Cat
64+
--bar # The warning admiral
65+
...args
66+
]

custom-completions/auto-generate/completions/as.nu renamed to custom-completions/as/as-completions.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern "as" [
88
--sectname-subst # Enable section name substitution sequences
99
--gen-debug(-g) # Generate debugging information
1010
--gstabs # Generate STABS debugging information
11-
--gstabs+ # Generate STABS debug info with GNU extensions
11+
# --gstabs+ # (breaks the nu parser) Generate STABS debug info with GNU extensions
1212
--gdwarf-2 # Generate DWARF2 debugging information
1313
--gdwarf-sections # Generate per-function section names for DWARF line information
1414
--help # Show help message and exit
@@ -42,7 +42,7 @@ extern "as yes no" [
4242
--sectname-subst # Enable section name substitution sequences
4343
--gen-debug(-g) # Generate debugging information
4444
--gstabs # Generate STABS debugging information
45-
--gstabs+ # Generate STABS debug info with GNU extensions
45+
# --gstabs+ # (breaks the nu parser) Generate STABS debug info with GNU extensions
4646
--gdwarf-2 # Generate DWARF2 debugging information
4747
--gdwarf-sections # Generate per-function section names for DWARF line information
4848
--help # Show help message and exit

custom-completions/auto-generate/completions/ack.nu

Lines changed: 0 additions & 65 deletions
This file was deleted.

custom-completions/auto-generate/completions/fsharpc.nu

Lines changed: 0 additions & 67 deletions
This file was deleted.

custom-completions/auto-generate/completions/fsharpi.nu

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)