headroom-0.4.0.0: License Header Manager
Copyright(c) 2019-2021 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 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 (FileSystem (RIO env)) 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.