diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-01-11 11:45:37 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-01-11 11:45:37 +0100 |
| commit | 3c313315c93256a91085a8e51c7b89b380a32281 (patch) | |
| tree | d161af3017c5e750a7a570a1643d6ed93e99ab22 | |
| parent | 4a7edf29cc192a039dbfd59960569f8c4f127992 (diff) | |
| download | kazbek-3c313315c93256a91085a8e51c7b89b380a32281.tar.gz | |
Add 7digital binary proxying to ruby
| -rw-r--r-- | 7digital/Main.hs | 9 | ||||
| -rw-r--r-- | kazbek.cabal | 10 |
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: |
