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

Add a non-interactive mode #7

Closed
georgebrock opened this issue Nov 15, 2013 · 7 comments
Closed

Add a non-interactive mode #7

georgebrock opened this issue Nov 15, 2013 · 7 comments
Milestone

Comments

@georgebrock
Copy link
Collaborator

gitsh should accept commands via STDIN or the path to a script as an argument. Scripting support will require additional features, like variables.

@mike-burns
Copy link
Contributor

Should be usable as a sh-bang.

@georgebrock
Copy link
Collaborator Author

Using gitsh as a sh-bang line will be tricky, since gitsh itself has a sh-bang line:
http://stackoverflow.com/questions/9988125/shebang-pointing-to-script-also-having-shebang-is-effectively-ignored

@mike-burns
Copy link
Contributor

Writing a tiny C wrapper would also make #41 possible.

@mike-burns
Copy link
Contributor

See also: http://www.in-ulm.de/~mascheck/various/shebang/ especially "nterpreter itself as #! script".

@georgebrock
Copy link
Collaborator Author

Work in progress on the gb-non-interactive branch: https://github.com/thoughtbot/gitsh/compare/gb-non-interactive

@georgebrock
Copy link
Collaborator Author

#171 adds support for passing a path to a script file as an argument. We still need to accept scripts piped to standard input, though.

@georgebrock
Copy link
Collaborator Author

#175 adds support for piping commands to the standard input, so we're done!

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