darcs-2.18.3: a distributed, interactive, smart revision control system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Darcs.UI.Commands

Synopsis

Documentation

withStdOpts :: DarcsOption (Maybe StdCmdAction -> Verbosity -> b) c -> DarcsOption (UseCache -> UseIndex -> HooksConfig -> Bool -> Bool -> [DarcsFlag]) b -> CommandOptions Source #

Construct CommandOptions from the command specific basic and advanced DarcsOptions

commandOptDescr :: AbsolutePath -> DarcsCommand -> [OptDescr DarcsFlag] Source #

Option descriptions as required by getOpt, i.e. resolved with the given AbsolutePath.

commandAlloptions :: DarcsCommand -> ([DarcsOptDescr DarcsFlag], [DarcsOptDescr DarcsFlag]) Source #

Option descriptions split into basic and advanced options

commandDefaults :: DarcsCommand -> [DarcsFlag] Source #

Built-in default values for all DarcsFlags supported by the given command

commandCheckOptions :: DarcsCommand -> [DarcsFlag] -> [OptMsg] Source #

For the given DarcsCommand check the given DarcsFlags for consistency

putInfo :: [DarcsFlag] -> Doc -> IO () Source #

setEnvDarcsPatches :: RepoPatch p => FL (PatchInfoAnd p) wX wY -> IO () Source #

Set the DARCS_PATCHES and DARCS_PATCHES_XML environment variables with info about the given patches, for use in post-hooks.

setEnvDarcsFiles :: PatchInspect p => p wX wY -> IO () Source #

Set the DARCS_FILES environment variable to the files touched by the given patch, one per line, for use in post-hooks.

defaultRepo :: [DarcsFlag] -> AbsolutePath -> [String] -> IO [String] Source #

To use for commandArgdefaults field.