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 custom build commands, not just custom build args #6

Open
capnfabs opened this issue Jan 9, 2020 · 1 comment
Open

Support custom build commands, not just custom build args #6

capnfabs opened this issue Jan 9, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@capnfabs
Copy link
Owner

capnfabs commented Jan 9, 2020

It's not always sufficient to just run hugo for a build -- many sites have different build processes.

e.g.

So, I think adding a --build-cmd command-line switch would be valuable. It's probably also worth allowing you to specify it twice to get different builds for different versions (like, if you've moved your build script to a new location between the two commits). This would also allow you to do e.g. --build-cmd=hugo --build-cmd=~/Downloads/hugo to diff between your system hugo and the new version you just downloaded.

I guess this should be run in a login shell, because people are used to thinking of their build command as a shell command, and that means that they'd be able to do things like e.g. use their standard aliases, and chain commands (e.g. npm install && hugo).

@capnfabs capnfabs added the enhancement New feature or request label Jan 9, 2020
@capnfabs
Copy link
Owner Author

capnfabs commented Jan 9, 2020

This would also mean we can support static site generators other than Hugo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant