ribosome-0.9.9.9: Neovim plugin framework for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Cli

Description

optparse-applicative parsers for the Ribosome CLI.

Synopsis

Documentation

logParser :: Path Abs Dir -> Parser CliLogConfig Source #

Parse the options related to logging.

confParser :: Path Abs Dir -> Parser c -> Parser (CliConfig, c) Source #

Parse the host config as well as the arbitrary user defined config.

parseCli :: PluginName -> Parser c -> IO (CliConfig, c) Source #

Parse the host config as well as the arbitrary user defined config, in IO.

withDefault :: HostConfig -> CliConfig -> HostConfig Source #

Parse the CLI options for a plugin config and update a default HostConfig with the CLI options.

withCli :: PluginName -> HostConfig -> Parser c -> (HostConfig -> c -> IO a) -> IO a Source #

Parse the CLI options for a plugin config and pass an updated default HostConfig to a callback.