module B9
( module B9.Builder
, module System.Exit
, module System.FilePath
, module Control.Applicative
, module Control.Monad
, module Control.Monad.IO.Class
, module Data.Monoid
, module Data.List
, module Data.Maybe
, module Text.Printf
, module Text.Show.Pretty
, module Data.Version
, configure
, b9_version
) where
import Control.Applicative
import Control.Monad
import Control.Monad.IO.Class
import Data.Monoid
import Data.List
import Data.Maybe
import Text.Show.Pretty (ppShow)
import System.Exit ( exitWith
, ExitCode (..) )
import System.FilePath ( takeDirectory
, takeFileName
, replaceExtension
, (</>)
, (<.>) )
import Text.Printf ( printf )
import Paths_b9 (version)
import Data.Version
import B9.Builder
import qualified B9.LibVirtLXC as LibVirtLXC
configure :: MonadIO m => Maybe SystemPath -> B9Config -> m ConfigParser
configure b9ConfigPath existingConfig = do
writeInitialB9Config b9ConfigPath existingConfig LibVirtLXC.setDefaultConfig
readB9Config b9ConfigPath
b9_version :: Version
b9_version = version