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

Full path for -b #71

Open
kokizzu opened this issue Apr 29, 2015 · 0 comments
Open

Full path for -b #71

kokizzu opened this issue Apr 29, 2015 · 0 comments

Comments

@kokizzu
Copy link

kokizzu commented Apr 29, 2015

It would be nice if gin support full path for -b, for example: gin -b /tmp/out.bin

all we need is to modify inside func MainAction(c *cli.Context) {

        //runner := gin.NewRunner(filepath.Join(wd, builder.Binary()), c.Args()...)
        runpath := builder.Binary()
        if runpath[0] != '/' {
                runpath = filepath.Join(wd, runpath)
        }
        runner := gin.NewRunner(runpath, c.Args()...)

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

No branches or pull requests

1 participant