charon-0.1: Template
Safe HaskellSafe-Inferred
LanguageGHC2021

Charon.Runner.Args

Description

Provides CLI args functionality.

Synopsis

Documentation

getArgs :: MonadOptparse m => m Args Source #

Retrieves CLI args.

data Args Source #

CLI args.

Constructors

MkArgs 

Fields

Instances

Instances details
Generic Args Source # 
Instance details

Defined in Charon.Runner.Args

Associated Types

type Rep Args :: Type -> Type #

Methods

from :: Args -> Rep Args x #

to :: Rep Args x -> Args #

Show Args Source # 
Instance details

Defined in Charon.Runner.Args

Methods

showsPrec :: Int -> Args -> ShowS #

show :: Args -> String #

showList :: [Args] -> ShowS #

Eq Args Source # 
Instance details

Defined in Charon.Runner.Args

Methods

(==) :: Args -> Args -> Bool #

(/=) :: Args -> Args -> Bool #

(k ~ A_Lens, a ~ Maybe Backend, b ~ Maybe Backend) => LabelOptic "backend" k Args Args a b Source # 
Instance details

Defined in Charon.Runner.Args

(k ~ A_Lens, a ~ CommandP1, b ~ CommandP1) => LabelOptic "command" k Args Args a b Source # 
Instance details

Defined in Charon.Runner.Args

(k ~ A_Lens, a ~ Maybe (Maybe LogLevel), b ~ Maybe (Maybe LogLevel)) => LabelOptic "logLevel" k Args Args a b Source # 
Instance details

Defined in Charon.Runner.Args

(k ~ A_Lens, a ~ Maybe FileSizeMode, b ~ Maybe FileSizeMode) => LabelOptic "logSizeMode" k Args Args a b Source # 
Instance details

Defined in Charon.Runner.Args

(k ~ A_Lens, a ~ TomlConfigPath, b ~ TomlConfigPath) => LabelOptic "tomlConfigPath" k Args Args a b Source # 
Instance details

Defined in Charon.Runner.Args

(k ~ A_Lens, a ~ Maybe (PathI 'TrashHome), b ~ Maybe (PathI 'TrashHome)) => LabelOptic "trashHome" k Args Args a b Source # 
Instance details

Defined in Charon.Runner.Args

type Rep Args Source # 
Instance details

Defined in Charon.Runner.Args

data TomlConfigPath Source #

Toml path config.

Constructors

TomlNone

Do not use any Toml config.

TomlDefault

Attempts to read the Toml file at the default path.

TomlPath OsPath

Path to Toml file.

Instances

Instances details
Show TomlConfigPath Source # 
Instance details

Defined in Charon.Runner.Args

Eq TomlConfigPath Source # 
Instance details

Defined in Charon.Runner.Args