31 lines
608 B
Haskell

module Main where
import MiniCli.Command
( renderCommand
, runCliParser
)
import System.Environment (getArgs)
import System.Exit (die)
main :: IO ()
main = do
args <- getArgs
let inputArgs =
case args of
[] ->
[ "validate"
, "--service"
, "api"
, "--env"
, "production"
, "--replicas"
, "3"
, "--track"
, "stable"
]
_ -> args
case runCliParser inputArgs of
Left err -> die err
Right commandValue -> putStrLn (renderCommand commandValue)