A shell complete function.
Moduleoptparse-applicative-0.18.1.0Haskell98
Options.Applicative.Builder.Completer
- 1 type
- 5 values
- Packageoptparse-applicative-0.18.1.0
- Exports6
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceTypes.hs
Smart constructor for a Completer
Create a Completer from an IO action
Create a Completer from a constant list of strings.
Run a compgen completion action.
Common actions include file and
directory. See
http://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html#Programmable-Completion-Builtins
for a complete list.
Strongly quote the string we pass to compgen.
We need to do this so bash doesn't expand out any ~ or other chars we want to complete on, or emit an end of line error when seeking the close to the quote.