Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains the podenv CLI entrypoint The workflow is: Main -> Config -> Build -> Application -> Context
- Main: select the app and override with command line arguments
- Config: load the configuration and select the application
- Build: optional application build
- App: convert application and capability into a Context
- Runtime: execute with podman or kubernetes
Synopsis
- main :: IO ()
- runApp :: RuntimeEnv -> Application -> IO ()
- usage :: [String] -> IO CLI
- cliConfigLoad :: CLI -> IO (Application, Mode, Name, RuntimeEnv)
- cliInfo :: ParserInfo CLI
- cliPrepare :: CLI -> Application -> Application
- data CLI = CLI {
- listApps :: Bool
- listCaps :: Bool
- showManifest :: Bool
- showDhallEnv :: Bool
- showApplication :: Bool
- configExpr :: Maybe Text
- update :: Bool
- verbose :: Bool
- detach :: Bool
- capsOverride :: [Capabilities -> Capabilities]
- shell :: Bool
- namespace :: Maybe Text
- name :: Maybe Text
- cliEnv :: [Text]
- volumes :: [Text]
- selector :: Maybe Text
- cliExtraArgs :: [Text]
Documentation
runApp :: RuntimeEnv -> Application -> IO () Source #
helper function to run a Application.
exports for tests
cliConfigLoad :: CLI -> IO (Application, Mode, Name, RuntimeEnv) Source #
Load the config
cliInfo :: ParserInfo CLI Source #
cliPrepare :: CLI -> Application -> Application Source #
Apply the CLI argument to the application
CLI | |
|