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
Expose CLI model #106
base: master
Are you sure you want to change the base?
Expose CLI model #106
Conversation
Getting a panic. Pulled this branch: GO111MODULE=on go get github.com/jawher/mow.cli@issue-104-app-model Here's a pared-down file that shows the issue: package main
import (
"os"
"github.com/davecgh/go-spew/spew"
cli "github.com/jawher/mow.cli"
)
func main() {
app := cli.App("myapp", "Description.")
app.Version("version", "1")
app.Command("do", "Do the thing.", func(config *cli.Cmd) {})
spew.Dump(app.Model())
err = app.Run(os.Args)
if err != nil {
exitErrorf(err)
}
} And the panic.
I don't see anything obvious in the code other than |
@skyzyx Nice catch ! I just pushed a commit to fix a bug in a slice allocation len 🤦♂️ |
3da148f
to
519fe99
Compare
Had a chance to come back to this, and I'm quite happy with the results. THANK YOU! |
Ping |
This is available on the |
app.Model()
Fixes #104