Last active
August 29, 2015 14:13
-
-
Save dpwiz/c32460e1ecbf612bb12f to your computer and use it in GitHub Desktop.
demo scarf config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# $ wget http://hipstername.tld/download/linux-x64/scarf && chmod +x scarf | |
# $ ./scarf gist:wiz/c32460e1ecbf612bb12f | |
title: Demo template | |
source: github:login/reponame | |
params: | |
- key: spam | |
title: Spam | |
help: How do you like your spam? | |
choices: | |
- raw | |
- baked | |
- key: sausage | |
help: How many sausages do you like? | |
range: 0..10 | |
default: 3 | |
- key: enable_tests | |
help: Enable testing? (good idea) | |
flag: true | |
steps: | |
- edit: README.md | |
- edit: LICENSE | |
- mv src/spam.hs src/spam_%{spam}.hs | |
- times: sausage | |
as: N | |
copy: src/sausage.hs | |
to: src/sausage_%{N}.hs | |
- rm src/sausage.hs | |
- cabal sandbox init | |
- cabal install --only-dep -j | |
- cabal configure %{enable_tests:--enable-tests} | |
- unless: enable_tests | |
cmd: "rm -r tests/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment