headroom-0.2.2.1: License Header Manager
Copyright(c) 2019-2020 Vaclav Svejcar
LicenseBSD-3-Clause
Maintainervaclav.svejcar@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Headroom.Command.Init

Description

Module representing the init command, responsible for generating all the required files (configuration, templates) for the given project, which are then required by the run or gen commands.

Synopsis

Documentation

data Env Source #

RIO Environment for the init command.

Constructors

Env 

Instances

Instances details
HasLogFunc Env Source # 
Instance details

Defined in Headroom.Command.Init

Methods

logFuncL :: Lens' Env LogFunc

Has CommandInitOptions Env Source # 
Instance details

Defined in Headroom.Command.Init

Has Paths Env Source # 
Instance details

Defined in Headroom.Command.Init

data Paths Source #

Paths to various locations of file system.

Constructors

Paths 

Instances

Instances details
Has Paths Env Source # 
Instance details

Defined in Headroom.Command.Init

commandInit Source #

Arguments

:: CommandInitOptions

init command options

-> IO ()

execution result

Handler for init command.

doesAppConfigExist :: (HasLogFunc env, Has Paths env) => RIO env Bool Source #

Checks whether application config file already exists.

findSupportedFileTypes :: (Has CommandInitOptions env, HasLogFunc env) => RIO env [FileType] Source #

Recursively scans provided source paths for known file types for which templates can be generated.