forked from GitHub/gf-core
complete word completion in the shell. works for commands, flags, options, abstract syntax identifiers and NL strings
This commit is contained in:
@@ -18,6 +18,8 @@ import System.Console.Readline
|
||||
|
||||
fetchCommand :: String -> IO (String)
|
||||
fetchCommand s = do
|
||||
setCompletionAppendCharacter Nothing
|
||||
setBasicQuoteCharacters ""
|
||||
res <- readline s
|
||||
case res of
|
||||
Nothing -> return "q"
|
||||
|
||||
Reference in New Issue
Block a user