aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--7digital/Main.hs9
-rw-r--r--kazbek.cabal10
2 files changed, 17 insertions, 2 deletions
diff --git a/7digital/Main.hs b/7digital/Main.hs
new file mode 100644
index 0000000..26cdeb3
--- /dev/null
+++ b/7digital/Main.hs
@@ -0,0 +1,9 @@
+import Control.Monad (void)
+import System.Process (rawSystem)
+import System.Environment (getArgs)
+
+main :: IO ()
+main = do
+ arguments <- getArgs
+ void $ rawSystem "bundle"
+ $ "exec" : "./bin/7digital.rb" : arguments
diff --git a/kazbek.cabal b/kazbek.cabal
index 74d7f2a..1615733 100644
--- a/kazbek.cabal
+++ b/kazbek.cabal
@@ -22,6 +22,7 @@ common warnings
aeson ^>= 2.2.3,
base >= 4.20 && < 5,
bytestring ^>= 0.12.2,
+ process ^>= 1.6.26,
text ^>= 2.1
executable tea-cleaner
@@ -51,5 +52,10 @@ executable locopy
build-depends:
directory ^>= 1.3.9,
filepath ^>= 1.5.4,
- optparse-applicative ^>= 0.19,
- process ^>= 1.6.26
+ optparse-applicative ^>= 0.19
+
+executable 7digital
+ import: warnings
+ main-is: Main.hs
+ hs-source-dirs: 7digital
+ build-depends: