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

Safe Haskell | None
Language | Haskell2010

Darcs.UI.Completion

Description

How to complete arguments

Synopsis

- fileArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [FilePath]
- knownFileArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [FilePath]
- unknownFileArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [FilePath]
- modifiedFileArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [FilePath]
- noArgs :: (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [String]
- data Pref
  - = Author
  - | Binaries
  - | Boring
  - | Defaultrepo
  - | Defaults
  - | Email
  - | Motd
  - | Post
  - | Prefs
  - | Repos
  - | Sources
- prefArgs :: Pref -> (AbsolutePath, AbsolutePath) -> [DarcsFlag] -> [String] -> IO [String]

# Documentation

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

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

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

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

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

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

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

Return an empty list.

data Pref #

Constructors

Author |
Binaries |
Boring |
Defaultrepo |
Defaults |
Email |
Motd |
Post |
Prefs |
Repos |
Sources |

#### Instances

Instances details

Read Pref # |
Instance details Defined in Darcs.Repository.Prefs Methods readsPrec :: Int -> ReadS Pref # readList :: ReadS [Pref] # readPrec :: ReadPrec Pref # readListPrec :: ReadPrec [Pref] #
Show Pref # |
Instance details Defined in Darcs.Repository.Prefs Methods showsPrec :: Int -> Pref -> ShowS # show :: Pref -> String # showList :: [Pref] -> ShowS #
Eq Pref # |
Instance details Defined in Darcs.Repository.Prefs Methods (==) :: Pref -> Pref -> Bool # (/=) :: Pref -> Pref -> Bool #
Ord Pref # |
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] #

Return the available prefs of the given kind.