Comments (5)
I think this would be a great add. You may want to mention error make
and complete
as well. It may also be helpful to know that do
has undergone some changes recently. So, I'd love some thorough documentation on it. I really don't understand why now you can just use do
without the i
sometimes.
from nushell.github.io.
You may want to mention error make and complete as well
Good point, added it to a list of topics to cover
It may also be helpful to know that do has undergone some changes recently. So, I'd love some thorough documentation on it. I really don't understand why now you can just use do without the i sometimes.
Not sure what you mean there, at the moment, do
takes a closure and can optionally accept command line flags according to the docs.
Regarding exceptions.
Is there any relevant difference to exceptions in other languages which should be pointed out?
from nushell.github.io.
Not sure what you mean there, at the moment,
There used to be a difference between these two commands (not in a directory with a git repo). Now there doesn't appear to be.
do -i { git branch --show-current }
and
do { git branch --show-current }
and with capturing the output.
do -i { git branch --show-current } | complete
and
do { git branch --show-current } | complete
from nushell.github.io.
@fdncred I can see the following difference
# test1.nu
do { git branch --show-current }
echo Hello
$ nu test1.nu
fatal: not a git repository (or any of the parent directories): .git
# test2.nu
do -i { git branch --show-current }
echo Hello
$ test2.nu
fatal: not a git repository (or any of the parent directories): .git
Hello
from nushell.github.io.
That's great that you've found a difference. Whatever all the differences are in those do
commands should be documented.
from nushell.github.io.
Related Issues (20)
- Generate terminal output HOT 1
- Step value of range is not mentioned in document HOT 1
- A page on control flow HOT 1
- Generate documentation for `std` commands
- Update modules page to disallow empty mod.nu HOT 1
- Issue with terminology in Thinking in Nu page HOT 3
- Add documentation for multi-dot paths HOT 1
- rewrite docs suggestion HOT 10
- Remove `$nothing` from document HOT 1
- Replace std testing with nupm HOT 5
- Explanations in the cheat sheet should come before the code that's explained HOT 2
- The Cookbook Setup page references the now-removed `env` command several times HOT 2
- Broken links HOT 4
- Quick Tour example not related to the text
- Something error syntax in zh-CN/README.md HOT 3
- [Overlays] Basic example is not usable with latest Nushell HOT 4
- Dataframe page polars dtypes command fails HOT 1
- `format date` is not listed in Strings category commands HOT 1
- Query help page should mention it's a plugin HOT 3
- Add Comparison with PowerShell / NGS HOT 6
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 nushell.github.io.