Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion custom-completions/poetry/poetry-completions.nu
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def "nu-complete poetry setting-values" [context: string]: nothing -> list<any>
return {
"installer.max-workers": [5 6 8 10 12 14 16 20 24 32 32 36 52 56 84 100 104]
"virtualenvs.prompt": ["\"{project_name}-py{python_version}\""]
} | get -i $final_context
} | get -o $final_context
}

# Export formats
Expand Down
8 changes: 4 additions & 4 deletions make_release/nu_deps.nu
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Extract target-specific dependencies from an opened Cargo.toml
def get-target-dependencies [] {
let target = ($in | get -i target)
let target = ($in | get -o target)

mut res = []

Expand All @@ -14,7 +14,7 @@ def get-target-dependencies [] {
}

for col in ($target | columns) {
let deps = ($target | get -i $col | get -i dependencies)
let deps = ($target | get -o $col | get -o dependencies)
if not ($deps | is-empty) {
$res ++= ($deps | columns)
}
Expand All @@ -31,8 +31,8 @@ def find-deps [] {
let data = (open $toml)

mut deps = []
$deps ++= ($data | get -i 'dependencies' | default {} | columns)
$deps ++= ($data | get -i 'dev-dependencies' | default {} | columns)
$deps ++= ($data | get -o 'dependencies' | default {} | columns)
$deps ++= ($data | get -o 'dev-dependencies' | default {} | columns)
$deps ++= ($data | get-target-dependencies)
let $deps = ($deps
| where ($it | str starts-with 'nu-')
Expand Down
4 changes: 2 additions & 2 deletions make_release/this_week_in_nu_weekly.nu
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def query-week-span [] {
)

if not ($site_json | all { |it| $it | is-empty }) {
let heading_name = ($repo_headings | get -i $repo | default $repo)
let heading_name = ($repo_headings | get -o $repo | default $repo)
print $"(char nl)## ($heading_name)(char nl)"

for user in ($site_json | group-by "user.login" | transpose user prs) {
Expand All @@ -92,7 +92,7 @@ def query-week-span [] {
}

let has_token = (try { gh auth token }) != null
let has_username_pw = ($env | get -i GITHUB_USERNAME | is-not-empty) and ($env | get -i GITHUB_PASSWORD | is-not-empty)
let has_username_pw = ($env | get -o GITHUB_USERNAME | is-not-empty) and ($env | get -o GITHUB_PASSWORD | is-not-empty)

if not ($has_token or $has_username_pw) {
print "This script requires either a working GitHub client that returns `gh auth token` or"
Expand Down
2 changes: 1 addition & 1 deletion modules/aws/select-aws-profile.nu
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export def --env main [] {
AWS_SECRET_ACCESS_KEY: ($creds | get $selected_profile | get "aws_secret_access_key"),
}

let region = ($creds | get $selected_profile | get -i "region")
let region = ($creds | get $selected_profile | get -o "region")
if $region != null {
$out | insert AWS_REGION $region
} else {
Expand Down
2 changes: 1 addition & 1 deletion modules/formats/remove-diacritics.nu
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export def main [
|split chars
|each {|char|
$diacritics_map
|get -i -s $char
|get -o -s $char
|default $char
}
|str join ''
Expand Down
2 changes: 1 addition & 1 deletion modules/language/playground/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export def play [
closure: closure
] {
let is_tag_empty = ($tag | is-empty);
let should_run_all = ($env | get -i RUN_ALL | default false);
let should_run_all = ($env | get -o RUN_ALL | default false);

if $is_tag_empty {
do $closure $topic
Expand Down
4 changes: 2 additions & 2 deletions modules/network/remoting/remoting.nu
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def "nu-complete hosts" [] {
def "nu-complete scripts" [] {
scope commands
|where is_custom
|get -i command
|get -o command
}

# Returns ssh connection as url to be consumed by original ssh command
Expand All @@ -43,7 +43,7 @@ export def ssh [
hostname: string@"nu-complete hosts" # name of the host you want to connect to
...args # commands you wish to run on the host
] {
let host = (hosts|where name == $hostname|get -i 0)
let host = (hosts|where name == $hostname|get -o 0)
if ($host.nu) {
if ($args|length) > 0 {
^ssh (get-url $host) (build-string ($args|str join ' ') '|to json -r')|from json
Expand Down
2 changes: 1 addition & 1 deletion modules/nvim/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export def tcd [path?: string] {

export-env {
$env.config = ( $env.config | upsert hooks.env_change.PWD { |config|
let o = ($config | get -i hooks.env_change.PWD)
let o = ($config | get -o hooks.env_change.PWD)
let val = (nvim_tcd)
if $o == null {
$val
Expand Down
2 changes: 1 addition & 1 deletion nu-hooks/nu-hooks/direnv/direnv.nu
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def direnv [] {

export-env {
$env.config = ( $env.config | upsert hooks.env_change.PWD { |config|
let o = ($config | get -i hooks.env_change.PWD)
let o = ($config | get -o hooks.env_change.PWD)
let val = (direnv)
if $o == null {
$val
Expand Down
2 changes: 1 addition & 1 deletion nu-hooks/nu-hooks/dynamic-load/dynamic-load.nu
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def dynamic_load [] {

export-env {
$env.config = ( $env.config | upsert hooks.env_change.PWD { |config|
let o = ($config | get -i hooks.env_change.PWD)
let o = ($config | get -o hooks.env_change.PWD)
let val = (dynamic_load)
if $o == null {
$val
Expand Down
2 changes: 1 addition & 1 deletion nu-hooks/nu-hooks/filesystem/autojump.nu
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def --env j [...dir] {
cd (autojump ...$dir)
}
$env.config = ($env.config | upsert hooks.env_change.PWD {|config|
let val = ($config | get -i hooks.env_change.PWD)
let val = ($config | get -o hooks.env_change.PWD)

if $val == null {
$val | append {|before, after| autojump_add_to_database $after }
Expand Down
2 changes: 1 addition & 1 deletion stdlib-candidate-archive/std-rfc/kv/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export def "kv get" [
| $in.std_kv_store | wrap temp | get temp
| where key == $key
# Should only be one occurence of each key in the stor
| get -i value.0
| get -o value.0
| match $in {
# Key not found
null => null
Expand Down