Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
OptEnvConf.Completion
Synopsis
- generateBashCompletionScript :: Path Abs File -> String -> IO ()
- bashCompletionScript :: Path Abs File -> String -> String
- generateZshCompletionScript :: Path Abs File -> String -> IO ()
- zshCompletionScript :: Path Abs File -> String -> String
- generateFishCompletionScript :: Path Abs File -> String -> IO ()
- fishCompletionScript :: Path Abs File -> String -> String
- runCompletionQuery :: Parser a -> Bool -> Int -> [String] -> IO ()
- pureCompletionQuery :: Parser a -> Int -> [String] -> [Completion Suggestion]
- data Completion a = Completion {
- completionSuggestion :: !a
- completionDescription :: !(Maybe String)
- evalCompletions :: String -> [Completion Suggestion] -> IO [Completion String]
- evalCompletion :: String -> Completion Suggestion -> IO [Completion String]
- data Suggestion
- evalSuggestion :: String -> Suggestion -> IO [String]
Documentation
bashCompletionScript :: Path Abs File -> String -> String Source #
Generated bash shell completion script
zshCompletionScript :: Path Abs File -> String -> String Source #
Generated zsh shell completion script
fishCompletionScript :: Path Abs File -> String -> String Source #
Generated fish shell completion script
pureCompletionQuery :: Parser a -> Int -> [String] -> [Completion Suggestion] Source #
data Completion a Source #
Constructors
Completion | |
Fields
|
Instances
IsString str => IsString (Completion str) Source # | |
Defined in OptEnvConf.Completion Methods fromString :: String -> Completion str # | |
Show a => Show (Completion a) Source # | |
Defined in OptEnvConf.Completion Methods showsPrec :: Int -> Completion a -> ShowS # show :: Completion a -> String # showList :: [Completion a] -> ShowS # | |
Eq a => Eq (Completion a) Source # | |
Defined in OptEnvConf.Completion | |
Ord a => Ord (Completion a) Source # | |
Defined in OptEnvConf.Completion Methods compare :: Completion a -> Completion a -> Ordering # (<) :: Completion a -> Completion a -> Bool # (<=) :: Completion a -> Completion a -> Bool # (>) :: Completion a -> Completion a -> Bool # (>=) :: Completion a -> Completion a -> Bool # max :: Completion a -> Completion a -> Completion a # min :: Completion a -> Completion a -> Completion a # |
evalCompletions :: String -> [Completion Suggestion] -> IO [Completion String] Source #
evalCompletion :: String -> Completion Suggestion -> IO [Completion String] Source #
data Suggestion Source #
Constructors
SuggestionBare !String | |
SuggestionCompleter !Completer |
Instances
IsString Suggestion Source # | |
Defined in OptEnvConf.Completion Methods fromString :: String -> Suggestion # |
evalSuggestion :: String -> Suggestion -> IO [String] Source #