File tree Expand file tree Collapse file tree 5 files changed +15
-0
lines changed
Expand file tree Collapse file tree 5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -69,4 +69,12 @@ Matches the file name using the given regex.
6969Instead of a regular loader, the function will also take the regex matches
7070returned by ` builtins.match ` , as shown in the type signature (` [ String ] ` ).
7171
72+ ## ` matchers.toml `
73+
74+ Source: [ ` src/matchers/toml.nix ` ] ( https://github.com/nix-community/haumea/blob/main/src/matchers/toml.nix )
75+
76+ Type: ` Matcher `
77+
78+ Matches all TOML files and loads them using ` lib.importTOML ` .
79+
7280[ `load` ] : load.html
Original file line number Diff line number Diff line change 1+ { lib , super } :
2+
3+ super . extension "toml" ( _ : lib . importTOML )
Original file line number Diff line number Diff line change 1+ [this ]
2+ is = " foo.bar"
Original file line number Diff line number Diff line change 11{
22 foo . "foo.yaml" . me = "foo" ;
3+ "foo.bar" . this . is = "foo.bar" ;
34 bar . "bar.yml" . me = "bar" ;
45 baz = {
56 ".nix" = ./__fixture/baz/.nix ;
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ haumea.load {
2828 ( matchers . regex ''^(.+)\.(yaml|yml)$'' fakeLoadYaml )
2929 ( matchers . nix haumea . loaders . default )
3030 matchers . json
31+ matchers . toml
3132 ( matchers . always haumea . loaders . path )
3233 ] ;
3334}
You can’t perform that action at this time.
0 commit comments