darcs-2.18.2: a distributed, interactive, smart revision control system
Safe HaskellNone
LanguageHaskell2010

Darcs.UI.Commands

Synopsis

Documentation

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

Construct CommandOptions from the command specific basic and advanced DarcsOptions

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

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

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

Option descriptions split into basic and advanced options

commandDefaults :: DarcsCommand -> [DarcsFlag] #

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

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

For the given DarcsCommand check the given DarcsFlags for consistency

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

putVerbose :: [DarcsFlag] -> Doc -> IO () #

putWarning :: [DarcsFlag] -> Doc -> IO () #

abortRun :: [DarcsFlag] -> Doc -> IO () #

setEnvDarcsPatches :: forall (p :: Type -> Type -> Type) wX wY. RepoPatch p => FL (PatchInfoAnd p) wX wY -> IO () #

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 () #

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] #

To use for commandArgdefaults field.