summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstuebinm2021-09-23 00:23:03 +0200
committerstuebinm2021-09-23 00:23:03 +0200
commit7ad5e1cd504b1d57ff3660f9eb81d2e7072ea4bf (patch)
treea144113aa8defd68f7b88b1e9ef6ee0196384c55 /src
parentc6be6366d6411d7b0b53fd8879537a33fefd5a88 (diff)
very naïve handling of directories
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs4
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