Comments (4)
I suspect this is because of 2 reasons
--redirect-stdout
and--redirect-stderr
have been deprecated- all the rest arguments to custom commands need to use the spread operator, not in just one custom command.
from nu_scripts.
I suspect this was fixed in #799 , is that correct @TeaDrinkingProgrammer ?
from nu_scripts.
Some errors have been resolved, but --redirect-stdout is still used, so I get depricated warnings for that and the script also doesn't seem to work anymore:
Error: × Deprecated flag
╭─[C:\Users\Stijn\AppData\Roaming\nushell\scripts\git_branch_cleanup.nu:59:16]
58 │ def current_branch [] {
59 │ run-external --redirect-stdout "git" "branch" "--show-current"
· ────────────────────────┬────────────────────────
· ╰── --redirect-stdout
is deprecated
60 │ | into string
╰────
help: run-external
will now always redirect stdout if there is a pipe |
afterwards
Error: × Deprecated flag
╭─[C:\Users\Stijn\AppData\Roaming\nushell\scripts\git_branch_cleanup.nu:88:16]
87 │
88 │ run-external --redirect-stdout "git" "symbolic-ref" $args
· ──────────────────────┬─────────────────────
· ╰── --redirect-stdout
is deprecated
89 │ | str trim
╰────
help: run-external
will now always redirect stdout if there is a pipe |
afterwards
Error: nu::shell::cannot_pass_list_to_external
× Lists are not automatically spread when calling external commands
╭─[C:\Users\Stijn\AppData\Roaming\nushell\scripts\git_branch_cleanup.nu:88:55]
87 │
88 │ run-external --redirect-stdout "git" "symbolic-ref" $args
· ──┬──
· ╰── Spread operator (...) is necessary to spread lists
89 │ | str trim
╰────
help: Either convert the list to a string or use the spread operator, like so: ...$args
from nu_scripts.
The deprecation warning is because the CI is using latest nushell version 0.92, released Apr-02,
here is a link to the deprecated commands chapter in the blogpost
from nu_scripts.
Related Issues (20)
- micromamba support
- `use` of `parse-help` throws `nu::parser::expected_keyword` HOT 1
- Performance issues on man completions HOT 5
- How about nushell-completions? HOT 5
- Job.nu script no longer works HOT 2
- nu_conda list should show which environments are activated HOT 1
- Nuscript's for Pacman
- Module `rbenv` can't export command named same as module. HOT 3
- Add a basic level of CI for this repo HOT 3
- winget-completions.nu with problems? HOT 4
- Conda documentation HOT 3
- Admin commands Question HOT 1
- Fix: nushell at 0.88.0 `start` and `end` are deprecated HOT 1
- tokyo-night theme uses tokyo-storm palette HOT 7
- [new script] is dark_mode mac HOT 1
- The direnv hooks are very confusing HOT 1
- `main` branch CI is not working as expected HOT 1
- PR 816 Broke Anaconda Activation Support on Windows
- 'winget show' errors on specific packages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nu_scripts.