tractor-output
Install the executable from NPM
npm install -g tractor-output
Use it like so:
tractor-output-exe -b chrome -c peach ~/Downloads/tractor-firefox-1501489618.txt
Install and build from source
- Install Haskell Stack
stack setup
stack build
Running the App
stack ghci
- to enter the REPL- `:set args -b "chrome" -c "color" "filepath.txt"
- this sets the values that
getArgs
will return when called in main
main
executes the actual programctrl + d
to exit the REPL
Publish to NPM
- Bump package.json and tractor-output.cabal to the new version.
npm publish
TODO
- move to github
- browser and color should be optional
- if they are not present they should be parsed from the file
- browser should be checked against list of browsers?
- maybe this isn't necessary now since we know which arg was the browser?
- could be helpful, but will also need to be maintained
- should I verify the file?
- you already get an error if it isn't there - maybe that isn't on me?
- TESTS!!!!