Skip to content

Commit

Permalink
refactor: nushell completion deprecate let-env (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Aug 27, 2023
1 parent 8885b2b commit f90246d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/argc/completions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ pub fn generate(shell: Shell, args: &[String]) -> Result<String> {
format!(
r###"{NUSHELL_SCRIPT}
if ('ARGC_SCRIPTS' in $env) {{
let-env ARGC_SCRIPTS = ($env.ARGC_SCRIPTS | append {cmds} | uniq)
$env.ARGC_SCRIPTS = ($env.ARGC_SCRIPTS | append {cmds} | uniq)
}} else {{
let-env ARGC_SCRIPTS = {cmds}
$env.ARGC_SCRIPTS = {cmds}
}}
let external_completer = {{|spans|
Expand Down

0 comments on commit f90246d

Please sign in to comment.