Copyright | (c) 2019-2020 Vaclav Svejcar |
---|---|
License | BSD-3 |
Maintainer | vaclav.svejcar@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Logic for the init
command, used to generate initial configuration boilerplate
for Headroom.
Synopsis
- commandInit :: InitOptions -> IO ()
- doesAppConfigExist :: (HasLogFunc env, HasPaths env) => RIO env Bool
- findSupportedFileTypes :: (HasInitOptions env, HasLogFunc env) => RIO env [FileType]
Documentation
:: InitOptions | Init command options |
-> IO () | execution result |
Handler for Init command.
doesAppConfigExist :: (HasLogFunc env, HasPaths env) => RIO env Bool Source #
Checks whether application config file already exists.
findSupportedFileTypes :: (HasInitOptions env, HasLogFunc env) => RIO env [FileType] Source #
Recursively scans provided source paths for known file types for which templates can be generated.