Module

Options.Applicative.Builder.Completer

Package
purescript-optparse
Repository
f-o-a-m/purescript-optparse

#listIOCompleter Source

listIOCompleter :: Effect (Array String) -> Completer

Create a 'Completer' from an IO action

#listCompleter Source

listCompleter :: (Array String) -> Completer

Create a 'Completer' from a constant

#bashCompleter Source

bashCompleter :: String -> Completer

Run a compgen completion action.

Re-exports from Options.Applicative.Types

#Completer Source

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 Source

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

Smart constructor for a 'Completer'