Giter Club home page Giter Club logo

Comments (4)

progrium avatar progrium commented on August 16, 2024

Yeah I'm not sure the best way to do this. Even though a hook handler could be anything, it would be nice if you could turn on trace mode if it's bash. At the very least. What exactly would debug mode do in your mind?

from pluginhook.

chrisscott avatar chrisscott commented on August 16, 2024

@progrium My original thought was to just take the stdout and stderr and output it by putting:

cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

before https://github.com/progrium/pluginhook/blob/master/pluginhook.go#L45

But my knowledge of go is limited to trying to figure this out :-)

from pluginhook.

progrium avatar progrium commented on August 16, 2024

I guess that's a start, but in many cases won't be helpful. If you can find
out how you can enable set -x from outside a bash script, that would be
useful.

On Tue, Jul 23, 2013 at 8:22 AM, Chris Scott [email protected]:

@progrium https://github.com/progrium My original thought was to just
take the stdout and stderr and output it by putting:

cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

before
https://github.com/progrium/pluginhook/blob/master/pluginhook.go#L45

But my knowledge of go is limited to trying to figure this out :-)


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-21421834
.

Jeff Lindsay
http://progrium.com

from pluginhook.

asm89 avatar asm89 commented on August 16, 2024

Trace mode (pluginhooxk -x) just got merged. Should cover this #9.

As for set -x in the underlying bash scripts, I like how we do it in dokku: https://github.com/progrium/dokku/blob/master/plugins/00_dokku-standard/install#L2

from pluginhook.

Related Issues (8)

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.