| Copyright | (c) Colin Woodbury 2012 - 2020 |
|---|---|
| License | GPL3 |
| Maintainer | Colin Woodbury <colin@fosskers.ca> |
| Safe Haskell | None |
| Language | Haskell2010 |
Aura.Settings
Description
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
- data BuildConfig = BuildConfig {
- makepkgFlagsOf :: !(Set Makepkg)
- buildPathOf :: !(Path Absolute)
- buildUserOf :: !(Maybe User)
- truncationOf :: !Truncation
- buildSwitchesOf :: !(Set BuildSwitch)
- data BuildSwitch
- switch :: Settings -> BuildSwitch -> Bool
- data Truncation
- defaultBuildDir :: Path Absolute
- data CommonConfig = CommonConfig {}
- data CommonSwitch
- data ColourMode
- shared :: Settings -> CommonSwitch -> Bool
- data Makepkg
Documentation
The global settings as set by the user with command-line flags.
Constructors
| Settings | |
Fields
| |
Aura Configuration
data BuildConfig Source #
Settings unique to the AUR package building process.
Constructors
| BuildConfig | |
Fields
| |
Instances
| Show BuildConfig Source # | |
Defined in Aura.Settings Methods showsPrec :: Int -> BuildConfig -> ShowS # show :: BuildConfig -> String # showList :: [BuildConfig] -> ShowS # | |
data BuildSwitch Source #
Extra options for customizing the build process.
Constructors
| DeleteMakeDeps | |
| DiffPkgbuilds | |
| DontSuppressMakepkg | |
| DryRun | |
| HotEdit | |
| LowVerbosity | |
| RebuildDevel | |
| SortAlphabetically | |
| UseCustomizepkg | |
| ForceBuilding | |
| NoPkgbuildCheck |
Instances
| Eq BuildSwitch Source # | |
Defined in Aura.Settings | |
| Ord BuildSwitch Source # | |
Defined in Aura.Settings Methods 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 Methods showsPrec :: Int -> BuildSwitch -> ShowS # show :: BuildSwitch -> String # showList :: [BuildSwitch] -> ShowS # | |
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 | |
| Show Truncation Source # | |
Defined in Aura.Settings Methods showsPrec :: Int -> Truncation -> ShowS # show :: Truncation -> String # showList :: [Truncation] -> ShowS # | |
defaultBuildDir :: Path Absolute 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.
Constructors
| 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.
Constructors
| NoConfirm | |
| NeededOnly | |
| Debug | |
| Colour ColourMode |
Instances
| Eq CommonSwitch Source # | |
Defined in Aura.Settings | |
| Ord CommonSwitch Source # | |
Defined in Aura.Settings Methods 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 Methods showsPrec :: Int -> CommonSwitch -> ShowS # show :: CommonSwitch -> String # showList :: [CommonSwitch] -> ShowS # | |
| Flagable CommonSwitch Source # | |
Defined in Aura.Settings Methods 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 | |
| Ord ColourMode Source # | |
Defined in Aura.Settings Methods 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 Methods showsPrec :: Int -> ColourMode -> ShowS # show :: ColourMode -> String # showList :: [ColourMode] -> ShowS # | |
| Flagable ColourMode Source # | |
Defined in Aura.Settings Methods asFlag :: ColourMode -> [Text] Source # | |
shared :: Settings -> CommonSwitch -> Bool Source #
Is some Aura/Pacman common setting turned on for this run?