mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Add a function to add arbitrary files
This commit is contained in:
parent
218973ef70
commit
3673dabbf3
@ -294,6 +294,13 @@ addReadme readme_ (Internal.Project project) =
|
||||
Internal.Project { project | readme = Just ( readme_, ContentHash.hash readme_.content ) }
|
||||
|
||||
|
||||
{-| REPLACEME
|
||||
-}
|
||||
addArbitraryFiles : List { path : String, content : String } -> Project -> Project
|
||||
addArbitraryFiles files (Internal.Project project) =
|
||||
Internal.Project { project | arbitraryFiles = List.map (\file -> ( file, ContentHash.hash file.content )) files }
|
||||
|
||||
|
||||
{-| Get the contents of the `README.md` file, if available.
|
||||
-}
|
||||
readme : Project -> Maybe { path : String, content : String }
|
||||
|
Loading…
Reference in New Issue
Block a user