Giter Site home page Giter Site logo

Comments (7)

jgoday avatar jgoday commented on July 30, 2024 1

I actually don't mind the description on another line :)
By the by, I've updated the library to the newest version of ZIO and would like to help get it ready for primetime. Let me know if there's anything I can help with :)

I just updated the branch with the changes from zio-cli / master, updated the git example too (to include subcommands help).
Let me know if it's ok :)

Thanks.

from zio-cli.

jgoday avatar jgoday commented on July 30, 2024

@kpritam I have tried to implement this in #91.

Could it be a valid solution?

from zio-cli.

kpritam avatar kpritam commented on July 30, 2024

@jgoday Nice to see your PR.
I see you are printing complete help i.e. help for nested options as well.

But if you look at git cli, when you say git --help, it does not print nested options. It only prints top level command names and their description.

To see individual help, one need to run for example, git pull --help command.

from zio-cli.

jgoday avatar jgoday commented on July 30, 2024

@kpritam should be fixed now then.
It looks like this
image

from zio-cli.

kpritam avatar kpritam commented on July 30, 2024

@jgoday I have not tested it but your last screenshot is what I was looking for. 🎉
Maybe it is good to align command name and its description in single line.

from zio-cli.

jgoday avatar jgoday commented on July 30, 2024

@kpritam If we want to display the subcommand name and the description in one line,
we have to decompose the description helpDoc and get his span text to append it with the name.

It would look like the following image

image

from zio-cli.

kitlangton avatar kitlangton commented on July 30, 2024

I actually don't mind the description on another line :)
By the by, I've updated the library to the newest version of ZIO and would like to help get it ready for primetime. Let me know if there's anything I can help with :)

from zio-cli.

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.