Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom types via flag.Value #32

Closed
tv42 opened this issue Mar 22, 2016 · 3 comments
Closed

custom types via flag.Value #32

tv42 opened this issue Mar 22, 2016 · 3 comments

Comments

@tv42
Copy link

tv42 commented Mar 22, 2016

Hi. I can't see anything in mow.cli taking options/arguments of a non-basic type, just string/int/bool. What about the functionality of flag.Var / flag.Value?

https://golang.org/pkg/flag/#Var

https://golang.org/pkg/flag/#Value

@tv42
Copy link
Author

tv42 commented Mar 22, 2016

Also this would solve #5

@jawher
Copy link
Owner

jawher commented Mar 29, 2016

@tv42 : Thanks for the suggestion, Var/Value would be a great addition to mow.cli.

While I won't be working on this immediately (I'm soon to set off to a 4 week vacation), I's definitely in the top of my todo list for future work, unless of course you feel like giving it a shot ?

@jawher
Copy link
Owner

jawher commented Sep 5, 2016

A quick update regarding this issue: I finally got something working in:

https://github.com/jawher/mow.cli/tree/issue32-handle-var-value-flags

What remains to be done:

  • Documentation (GoDoc and README)
  • Examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants