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

Switch to 'and' and 'or' (#322)

* Switch to 'and' and 'or'

* oops
This commit is contained in:
JT 2022-12-08 12:52:10 +13:00 committed by GitHub
parent fe5c307390
commit 6f9d6250d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 104 additions and 101 deletions

View file

@ -1,9 +1,9 @@
def gen_keywords [] {
let cmds = ($nu.scope.commands
| where is_extern == false
&& is_custom == false
&& category !~ deprecated
&& ($it.command | str contains -n ' ')
and is_custom == false
and category !~ deprecated
and ($it.command | str contains -n ' ')
| get command
| str collect '|')
@ -20,9 +20,9 @@ char nl
def gen_sub_keywords [] {
let sub_cmds = ($nu.scope.commands
| where is_extern == false
&& is_custom == false
&& category !~ deprecated
&& ($it.command | str contains ' ')
and is_custom == false
and category !~ deprecated
and ($it.command | str contains ' ')
| get command)
let preamble = '\\b('
@ -41,9 +41,9 @@ def gen_keywords_alphabetically [] {
let alphabet = [a b c d e f g h i j k l m n o p q r s t u v w x y z]
let cmds = ($nu.scope.commands
| where is_extern == false
&& is_custom == false
&& category !~ deprecated
&& ($it.command | str contains -n ' ')
and is_custom == false
and category !~ deprecated
and ($it.command | str contains -n ' ')
| get command)
let preamble = '\\b('
@ -72,9 +72,9 @@ def gen_sub_keywords_alphabetically [] {
let alphabet = [a b c d e f g h i j k l m n o p q r s t u v w x y z]
let sub_cmds = ($nu.scope.commands
| where is_extern == false
&& is_custom == false
&& category !~ deprecated
&& ($it.command | str contains ' ')
and is_custom == false
and category !~ deprecated
and ($it.command | str contains ' ')
| get command)
let preamble = '\\b('