git-config alternatives and similar packages
Based on the "git" category.
Alternatively, view git-config alternatives based on common mentions on social networks and blogs.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of git-config or a related project?
A simple parser for Git configuration files.
This project is built using Stack, make sure you have it installed before proceeding.
You can fire up an interactive session like so:
The library can be built or tested like so:
# Building stack build # Running tests stack test
A Git configuration is a colletion of sections that contain mappings of keys to values.
For the sake of simplicity this is represented as
[Section] where a
Section is a collection of section names and a mapping of keys to values.
We can use the parser like so:
import qualified Data.Text.IO as TIO import Text.GitConfig.Parser (parseConfig) main :: IO () main = do file <- TIO.readFile ".git/config" case parseConfig file of Right conf -> print conf Left error -> print error
If you'd like to do your own parsing you can import the individual combinators