tractor-output

3.0.0 • Public • Published

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

  1. Install Haskell Stack
  2. stack setup
  3. 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 program
  • ctrl + d to exit the REPL

Publish to NPM

  1. Bump package.json and tractor-output.cabal to the new version.
  2. 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!!!!

Readme

Keywords

none

Package Sidebar

Install

npm i tractor-output

Weekly Downloads

1

Version

3.0.0

License

ISC

Last publish

Collaborators

  • dougflip