[golist] Issue #21: Overhaul CLI

2019-04-25 Thread Nicolas Mailhot

nim added a new comment to an issue you are following:
``
@eclipseo Please play a little with `modist` and tell us if it is better. I 
tried to fix the CLI interface.

`cobra` is difficult to use in a core utility like `golist`. It has lots of 
requirements, so bootsrapping a Go stack that required cobra to work would be 
quite difficult.
``

To reply, visit the link below or just reply to this email
https://pagure.io/golist/issue/21
___
golang mailing list -- golang@lists.fedoraproject.org
To unsubscribe send an email to golang-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org


[golist] Issue #21: Overhaul CLI

2019-04-25 Thread Elliott Sales de Andrade

qulogic added a new comment to an issue you are following:
``
True, `cobra` uses quite a bit; `pflag` has no dependencies though, which would 
be even better than `urfave/cli`.
``

To reply, visit the link below or just reply to this email
https://pagure.io/golist/issue/21
___
golang mailing list -- golang@lists.fedoraproject.org
To unsubscribe send an email to golang-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org


[golist] Issue #21: Overhaul CLI

2019-04-25 Thread Elliott Sales de Andrade

qulogic reported a new issue against the project: `golist` that you are 
following:
``
I don't really like the way the command-line arguments are specified right now. 
Everything is an optional flag which requires writing out a redundant argument 
name. This would be even worse with #4. Also, urfave/cli doesn't seem to follow 
POSIX semantics, which is a bit annoying.

I'd rather the CLI look something like: `golist   
[ ...]` where `` is one of the original flags that 
specified output modes. All the other flags could remain optional.

This could maybe be done with `pflag` instead for optional things and just 
switching commands ourselves. Or maybe using `cobra`. Probably depends on how 
heavy these things are.
``

To reply, visit the link below or just reply to this email
https://pagure.io/golist/issue/21
___
golang mailing list -- golang@lists.fedoraproject.org
To unsubscribe send an email to golang-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org