tomlcheck 0.1.0.8 → 0.1.0.9
raw patch · 4 files changed
+22/−2 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- .travis.yml +3/−0
- README.md +13/−0
- src/Toml/Checker.hs +5/−1
- tomlcheck.cabal +1/−1
.travis.yml view
@@ -49,6 +49,9 @@ - echo $BINPATH - mv $BINPATH tomlcheck-$TARGET - ls tomlcheck-$TARGET+ - wget https://github.com/vmchale/tomlcheck/releases/download/0.1.0.8/tomlcheck-x86_64-unkown-linux-gnu -O tomlcheck+ - chmod a+x tomlcheck+ - ./tomlcheck --file data/sample.toml deploy: api_key:
README.md view
@@ -24,3 +24,16 @@ $ cabal update $ cabal install tomlcheck ```++## Use++### Travis++A sample script for your `.travis.yml` file:++```yaml+test:+ - wget https://github.com/vmchale/tomlcheck/releases/download/0.1.0.8/tomlcheck-x86_64-unkown-linux-gnu -O tomlcheck+ - chmod a+x tomlcheck+ - ./tomlcheck --file data/sample.toml+```
src/Toml/Checker.hs view
@@ -10,6 +10,7 @@ import qualified Data.Text.IO as TIO import GHC.Generics (Generic) import Options.Generic+import System.Exit (ExitCode (..), exitWith) import Text.Megaparsec (parseErrorPretty) import Text.Toml (parseTomlDoc) @@ -29,4 +30,7 @@ contents <- TIO.readFile path case parseTomlDoc path contents of Right _ -> pure ()- Left e -> putStrLn $ parseErrorPretty e+ Left e -> do+ putStrLn $ parseErrorPretty e+ exitWith (ExitFailure 1)+
tomlcheck.cabal view
@@ -1,5 +1,5 @@ name: tomlcheck-version: 0.1.0.8+version: 0.1.0.9 synopsis: Command-line tool to check syntax of TOML files description: This is a command-line wrapper around htoml-megaparsec. It is intended to be used as a syntax checker that can be