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

Support Pre & Post build scripts #453

Closed
kareemmahlees opened this issue Aug 20, 2023 · 1 comment · Fixed by #461
Closed

Support Pre & Post build scripts #453

kareemmahlees opened this issue Aug 20, 2023 · 1 comment · Fixed by #461

Comments

@kareemmahlees
Copy link
Contributor

Context

I was creating a fiber API and wanted to run the swag fmt and swag init commands before each build.

Wanted Solution

[build]
    pre_cmd = [ "swag fmt", "swag init" ] 
    cmd = "go build -o ./tmp/main.exe ."
    post_cmd = [ " some other scripts " ]

If the maintainers are ok with this you can assign this to me and I will happily work on it 😄

@xiantang
Copy link
Collaborator

If you have submitted a PR and have sufficient unit tests, I am happy to merge it

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 a pull request may close this issue.

2 participants