summoner-1.2.0: Tool for scaffolding completely configured production Haskell projects.

Safe HaskellNone
LanguageHaskell2010

Summoner.CLI

Contents

Description

This module contains functions and data types to parse CLI inputs.

Synopsis

CLI data types

data Command Source #

Represent all available commands

Constructors

New NewOpts

new command creates a new project

ShowInfo ShowOpts

show command shows supported licenses or GHC versions

data NewOpts Source #

Options parsed with new command

Constructors

NewOpts 

Fields

data ShowOpts Source #

Commands parsed with show command

Constructors

GhcList 
LicenseList (Maybe String) 

Functions to parse CLI arguments and run summoner

summon :: Version -> (Command -> IO ()) -> IO () Source #

Main function that parses CLI commands and runs them using given Command handler.

summonCli :: IO () Source #

Runs summoner in CLI mode.

Common helper functions

getFinalConfig :: NewOpts -> IO Config Source #

By the given NewOpts return the final configurations.