Comments (4)
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.
@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.
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.Stderrbefore
https://github.com/progrium/pluginhook/blob/master/pluginhook.go#L45But 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.
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)
- Pluginhook runs plugin scripts in parallel, which may be a problem for certain scripted tasks HOT 7
- Only last plugin commands are executed HOT 2
- Pluginhook hangs when launched from ssh
- pluginhook returns exitstatus 1 even though it everything completed.
- environment variable to indicate currently running hook
- Missing LICENSE file HOT 2
- Please update crypto import path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pluginhook.