b9-0.5.43: A tool and library for building virtual machine images.

Safe HaskellNone
LanguageHaskell2010

B9.B9Config

Description

Static B9 configuration. Read, write and merge configurable properties. The properties are independent of specific build targets.

Synopsis

Documentation

data B9ConfigOverride Source #

Override b9 configuration items and/or the path of the b9 configuration file. This is useful, i.e. when dealing with command line parameters.

openOrCreateB9Config :: MonadIO m => Maybe SystemPath -> m ConfigParser Source #

Open the configuration file that contains the B9Config. If the configuration does not exist, write a default configuration file, and create a all missing directories.

writeB9ConfigParser :: MonadIO m => Maybe SystemPath -> ConfigParser -> m () Source #

Write the configuration in the ConfigParser to either the user supplied configuration file path or to defaultB9ConfigFile. Create all missing (parent) directories.

appendPositionalArguments :: [String] -> B9Config -> B9Config Source #

If environment variables arg_1 .. arg_n are bound and a list of k additional values are passed to this function, store them with keys arg_(n+1) .. arg_(n+k).

modifyConfigParser :: (B9Config -> B9Config) -> ConfigParser -> Either CPError ConfigParser Source #

Parse a B9Config, modify it, and merge it back to the given ConfigParser.