Git Product home page Git Product logo

Comments (5)

fdncred avatar fdncred commented on July 29, 2024

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.

Hofer-Julian avatar Hofer-Julian commented on July 29, 2024

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.

fdncred avatar fdncred commented on July 29, 2024

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.

Hofer-Julian avatar Hofer-Julian commented on July 29, 2024

@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.

fdncred avatar fdncred commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.