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

Remove globals #20

Merged
merged 4 commits into from
Aug 4, 2015
Merged

Remove globals #20

merged 4 commits into from
Aug 4, 2015

Conversation

ejholmes
Copy link
Contributor

This moves all of the command related functionality into cmd/captain and makes package captain a more re-usable library.

Primarily, these changes were made:

  1. package harbur/captain/captain was moved to package harbur/captain.
  2. cmd.go was moved to cmd/captain/cmd.go
  3. The Options type was moved to cmd/captain and the global options variable was removed.

I'm planning on adding an http.Handler implementation that consumes the captain package to handle GitHub push webhooks, so you can use captain as your build system both locally, and on git pushes to github without needing to setup something like jenkins. I think it could be pretty nice.

I'll submit that change upstream when it's ready and if you want it, but I figure you might also want this change.

@ejholmes
Copy link
Contributor Author

And of course, the server implementation will be in pacakge captain/hook :)

dkapanidis added a commit that referenced this pull request Aug 4, 2015
@dkapanidis dkapanidis merged commit 87eae57 into harbur:master Aug 4, 2015
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

Successfully merging this pull request may close these issues.

2 participants