Copyright | (c) Colin Woodbury 2012 - 2020 |
---|---|
License | GPL3 |
Maintainer | Colin Woodbury <colin@fosskers.ca> |
Safe Haskell | None |
Language | Haskell2010 |
Definition of the runtime environment.
Synopsis
- data Settings = Settings {
- managerOf :: !Manager
- envOf :: !Environment
- langOf :: !Language
- editorOf :: !FilePath
- isTerminal :: !Bool
- ignoresOf :: !(Set PkgName)
- commonConfigOf :: !CommonConfig
- buildConfigOf :: !BuildConfig
- logLevelOf :: !LogLevel
- logFuncOf :: !LogFunc
- logFuncOfL :: Lens' Settings LogFunc
- data BuildConfig = BuildConfig {
- makepkgFlagsOf :: !(Set Makepkg)
- buildPathOf :: !(Maybe FilePath)
- buildUserOf :: !(Maybe User)
- allsourcePathOf :: !(Maybe FilePath)
- vcsPathOf :: !(Maybe FilePath)
- truncationOf :: !Truncation
- buildSwitchesOf :: !(Set BuildSwitch)
- data BuildSwitch
- buildPathOfL :: Lens' BuildConfig (Maybe FilePath)
- buildUserOfL :: Lens' BuildConfig (Maybe User)
- buildSwitchesOfL :: Lens' BuildConfig (Set BuildSwitch)
- allsourcePathOfL :: Lens' BuildConfig (Maybe FilePath)
- vcsPathOfL :: Lens' BuildConfig (Maybe FilePath)
- switch :: Settings -> BuildSwitch -> Bool
- data Truncation
- defaultBuildDir :: FilePath
- data CommonConfig = CommonConfig {
- cachePathOf :: !(Either FilePath FilePath)
- configPathOf :: !(Either FilePath FilePath)
- logPathOf :: !(Either FilePath FilePath)
- commonSwitchesOf :: !(Set CommonSwitch)
- data CommonSwitch
- = NoConfirm
- | NeededOnly
- | Debug
- | Colour !ColourMode
- | Overwrite !Text
- cachePathOfL :: Lens' CommonConfig (Either FilePath FilePath)
- logPathOfL :: Lens' CommonConfig (Either FilePath FilePath)
- data ColourMode
- shared :: Settings -> CommonSwitch -> Bool
- data Makepkg
Documentation
The global settings as set by the user with command-line flags.
Settings | |
|
Instances
Aura Configuration
data BuildConfig Source #
Settings unique to the AUR package building process.
BuildConfig | |
|
Instances
Show BuildConfig Source # | |
Defined in Aura.Settings showsPrec :: Int -> BuildConfig -> ShowS # show :: BuildConfig -> String # showList :: [BuildConfig] -> ShowS # |
data BuildSwitch Source #
Extra options for customizing the build process.
AsDeps | |
DeleteBuildDir | |
DeleteMakeDeps | |
DiffPkgbuilds | |
DontSuppressMakepkg | |
DryRun | |
ForceBuilding | |
HotEdit | |
LowVerbosity | |
NoPkgbuildCheck | |
RebuildDevel | |
SkipDepCheck | |
SortAlphabetically |
Instances
Eq BuildSwitch Source # | |
Defined in Aura.Settings (==) :: BuildSwitch -> BuildSwitch -> Bool # (/=) :: BuildSwitch -> BuildSwitch -> Bool # | |
Ord BuildSwitch Source # | |
Defined in Aura.Settings compare :: BuildSwitch -> BuildSwitch -> Ordering # (<) :: BuildSwitch -> BuildSwitch -> Bool # (<=) :: BuildSwitch -> BuildSwitch -> Bool # (>) :: BuildSwitch -> BuildSwitch -> Bool # (>=) :: BuildSwitch -> BuildSwitch -> Bool # max :: BuildSwitch -> BuildSwitch -> BuildSwitch # min :: BuildSwitch -> BuildSwitch -> BuildSwitch # | |
Show BuildSwitch Source # | |
Defined in Aura.Settings showsPrec :: Int -> BuildSwitch -> ShowS # show :: BuildSwitch -> String # showList :: [BuildSwitch] -> ShowS # |
buildUserOfL :: Lens' BuildConfig (Maybe User) Source #
switch :: Settings -> BuildSwitch -> Bool Source #
Is some Aura-specific setting turned on for this run?
data Truncation Source #
How -As
should truncate its results.
Instances
Eq Truncation Source # | |
Defined in Aura.Settings (==) :: Truncation -> Truncation -> Bool # (/=) :: Truncation -> Truncation -> Bool # | |
Show Truncation Source # | |
Defined in Aura.Settings showsPrec :: Int -> Truncation -> ShowS # show :: Truncation -> String # showList :: [Truncation] -> ShowS # |
defaultBuildDir :: FilePath Source #
Unless otherwise specified, packages will be built within /tmp
.
Pacman Interop
data CommonConfig Source #
Flags that are common to both Aura and Pacman.
Aura will react to them, but also pass them through to pacman
calls if necessary.
CommonConfig | |
|
Instances
data CommonSwitch Source #
Yes/No-style switches that are common to both Aura and Pacman.
Aura acts on them first, then passes them down to pacman
if necessary.
Instances
Eq CommonSwitch Source # | |
Defined in Aura.Settings (==) :: CommonSwitch -> CommonSwitch -> Bool # (/=) :: CommonSwitch -> CommonSwitch -> Bool # | |
Ord CommonSwitch Source # | |
Defined in Aura.Settings compare :: CommonSwitch -> CommonSwitch -> Ordering # (<) :: CommonSwitch -> CommonSwitch -> Bool # (<=) :: CommonSwitch -> CommonSwitch -> Bool # (>) :: CommonSwitch -> CommonSwitch -> Bool # (>=) :: CommonSwitch -> CommonSwitch -> Bool # max :: CommonSwitch -> CommonSwitch -> CommonSwitch # min :: CommonSwitch -> CommonSwitch -> CommonSwitch # | |
Show CommonSwitch Source # | |
Defined in Aura.Settings showsPrec :: Int -> CommonSwitch -> ShowS # show :: CommonSwitch -> String # showList :: [CommonSwitch] -> ShowS # | |
Flagable CommonSwitch Source # | |
Defined in Aura.Settings asFlag :: CommonSwitch -> [Text] Source # |
data ColourMode Source #
Matches Pacman's colour options. Auto
will ensure that text will only be coloured
when the output target is a terminal.
Instances
Eq ColourMode Source # | |
Defined in Aura.Settings (==) :: ColourMode -> ColourMode -> Bool # (/=) :: ColourMode -> ColourMode -> Bool # | |
Ord ColourMode Source # | |
Defined in Aura.Settings compare :: ColourMode -> ColourMode -> Ordering # (<) :: ColourMode -> ColourMode -> Bool # (<=) :: ColourMode -> ColourMode -> Bool # (>) :: ColourMode -> ColourMode -> Bool # (>=) :: ColourMode -> ColourMode -> Bool # max :: ColourMode -> ColourMode -> ColourMode # min :: ColourMode -> ColourMode -> ColourMode # | |
Show ColourMode Source # | |
Defined in Aura.Settings showsPrec :: Int -> ColourMode -> ShowS # show :: ColourMode -> String # showList :: [ColourMode] -> ShowS # | |
Flagable ColourMode Source # | |
Defined in Aura.Settings asFlag :: ColourMode -> [Text] Source # |
shared :: Settings -> CommonSwitch -> Bool Source #
Is some Aura/Pacman common setting turned on for this run?