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

Darcs.UI.Completion

Description

How to complete arguments

Synopsis

Documentation

fileArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [FilePath] Source #

Return all files available under the original working directory regardless of their repo state.

knownFileArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [FilePath] Source #

Return all files available under the original working directory that are known to darcs (either recorded or pending).

unknownFileArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [FilePath] Source #

Return all files available under the original working directory that are unknown to darcs but could be added.

modifiedFileArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [FilePath] Source #

Return all files available under the original working directory that are modified (relative to the recorded state).

noArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [String] Source #

Return an empty list.

data Pref Source #

Instances

Instances details
Read Pref Source # 
Instance details

Defined in Darcs.Repository.Prefs

Show Pref Source # 
Instance details

Defined in Darcs.Repository.Prefs

Methods

showsPrec :: Int -> Pref -> ShowS #

show :: Pref -> String #

showList :: [Pref] -> ShowS #

Eq Pref Source # 
Instance details

Defined in Darcs.Repository.Prefs

Methods

(==) :: Pref -> Pref -> Bool #

(/=) :: Pref -> Pref -> Bool #

Ord Pref Source # 
Instance details

Defined in Darcs.Repository.Prefs

Methods

compare :: Pref -> Pref -> Ordering #

(<) :: Pref -> Pref -> Bool #

(<=) :: Pref -> Pref -> Bool #

(>) :: Pref -> Pref -> Bool #

(>=) :: Pref -> Pref -> Bool #

max :: Pref -> Pref -> Pref #

min :: Pref -> Pref -> Pref #

prefArgs :: Pref -> (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [String] Source #

Return the available prefs of the given kind.