mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
fcb7c07714
commit
4e1d422a04
|
@ -136,7 +136,8 @@ metaDataEntries = do
|
||||||
SymbolVal "auto" -> pure [Auto]
|
SymbolVal "auto" -> pure [Auto]
|
||||||
|
|
||||||
ListVal (SymbolVal "dict" : [ListVal [SymbolVal "encrypted", StringLike key]])
|
ListVal (SymbolVal "dict" : [ListVal [SymbolVal "encrypted", StringLike key]])
|
||||||
-> pure [Encrypted key]
|
-> do
|
||||||
|
pure [Encrypted key]
|
||||||
|
|
||||||
ListVal (SymbolVal "dict" : [ListVal [SymbolVal x, StringLike y]]) -> do
|
ListVal (SymbolVal "dict" : [ListVal [SymbolVal x, StringLike y]]) -> do
|
||||||
pure [MetaDataEntry x y]
|
pure [MetaDataEntry x y]
|
||||||
|
@ -167,6 +168,8 @@ metaDataEntries = do
|
||||||
|
|
||||||
let meta1 = HM.fromList [ (txt n, txt e) | MetaDataEntry n e <- universeBi opts ]
|
let meta1 = HM.fromList [ (txt n, txt e) | MetaDataEntry n e <- universeBi opts ]
|
||||||
|
|
||||||
|
error $ show opts
|
||||||
|
|
||||||
href <- createTreeWithMetadata (meta0 <> meta1) lbs
|
href <- createTreeWithMetadata (meta0 <> meta1) lbs
|
||||||
|
|
||||||
pure $ mkStr (show $ pretty href)
|
pure $ mkStr (show $ pretty href)
|
||||||
|
|
Loading…
Reference in New Issue