Module

Options.Applicative.Builder.Completer

#listIOCompleter

listIOCompleter :: Effect (Array String) -> Completer

Create a 'Completer' from an IO action

#listCompleter

listCompleter :: (Array String) -> Completer

Create a 'Completer' from a constant

#bashCompleter

bashCompleter :: String -> Completer

Run a compgen completion action.

Re-exports from Options.Applicative.Types

#Completer

newtype Completer

optparse-applicative supplies a rich completion system for bash, zsh, and fish shells.

'Completer' functions are used for option and argument to complete their values.

Use the 'completer' builder to use these. The 'action' and 'completeWith' builders are also provided for convenience, to use 'bashCompleter' and 'listCompleter' as a 'Mod'.

Instances

#mkCompleter

mkCompleter :: (String -> Effect (Array String)) -> Completer

Smart constructor for a 'Completer'

Modules