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

feature: run command after pull #3

Closed
joeworkman opened this issue Jan 12, 2022 · 6 comments
Closed

feature: run command after pull #3

joeworkman opened this issue Jan 12, 2022 · 6 comments

Comments

@joeworkman
Copy link

It could be convenient to be able to define a command that would be ran after the repository is pulled down.

@greenpau
Copy link
Owner

It could be convenient to be able to define a command that would be ran after the repository is pulled down.

@joeworkman , what would be the example?

git {
  repo <foo> {
    post pull cmd <args>
  }
}

@joeworkman
Copy link
Author

joeworkman commented Jan 13, 2022

I will have to default to your best practices and knowledge with Caddy and Go on this one.

@greenpau greenpau changed the title Run command after Pull feature: run command after pull Jan 13, 2022
@greenpau
Copy link
Owner

@joeworkman , FYI, here is the syntax I have for this.

git {
  repo <foo> {
    post pull exec {
      name Pager
      command /usr/local/bin/pager
      args "pulled authp.github.io repo"
    }
  }
}

greenpau added a commit that referenced this issue Jan 13, 2022
@greenpau
Copy link
Owner

@joeworkman , this feature is supported in v1.0.4.

@joeworkman
Copy link
Author

Dude! Beast mode!!! It's been a busy day. I'll play with it asap.

@greenpau
Copy link
Owner

@joeworkman , connect with me on LinkedIn and we can chat there. If you have time right now, I can get on the phone with you and help you through the setup.

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

2 participants