18 lines
419 B
Haskell
18 lines
419 B
Haskell
|
|
module Main where
|
||
|
|
|
||
|
|
import MiniParser.Deploy (parseDeployCommand, renderCommand)
|
||
|
|
import System.Environment (getArgs)
|
||
|
|
import System.Exit (die)
|
||
|
|
|
||
|
|
main :: IO ()
|
||
|
|
main = do
|
||
|
|
args <- getArgs
|
||
|
|
let input =
|
||
|
|
case args of
|
||
|
|
[] -> "deploy api staging tags=learning,flakes"
|
||
|
|
_ -> unwords args
|
||
|
|
|
||
|
|
case parseDeployCommand input of
|
||
|
|
Left err -> die err
|
||
|
|
Right command -> putStrLn (renderCommand command)
|