diff options
author | stuebinm | 2021-09-23 00:23:03 +0200 |
---|---|---|
committer | stuebinm | 2021-09-23 00:23:03 +0200 |
commit | 7ad5e1cd504b1d57ff3660f9eb81d2e7072ea4bf (patch) | |
tree | a144113aa8defd68f7b88b1e9ef6ee0196384c55 /src | |
parent | c6be6366d6411d7b0b53fd8879537a33fefd5a88 (diff) |
very naïve handling of directories
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs index 969fa10..33db91c 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -17,6 +17,7 @@ import WithCli import CheckMap (loadAndLintMap) import Util (printPretty) +import CheckDir (recursiveCheckDir) -- | the options this cli tool can take data Options = Options @@ -40,7 +41,8 @@ main = withCli run run :: Options -> IO () run options = do - lints <- loadAndLintMap (fromMaybe "example.json" (inpath options)) + --lints <- loadAndLintMap (fromMaybe "example.json" (inpath options)) + lints <- recursiveCheckDir (fromMaybe "example.json" (inpath options)) if json options then printLB |