mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
d4616bf77c
commit
fc3f5ff15d
|
@ -54,5 +54,8 @@ fixme-comments ";" "--"
|
||||||
|
|
||||||
(define (ls) (report))
|
(define (ls) (report))
|
||||||
|
|
||||||
|
(define (ls:wip) (report workflow ~ wip))
|
||||||
|
|
||||||
(define (stage) (fixme:stage:show))
|
(define (stage) (fixme:stage:show))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -52,3 +52,10 @@ fixme-comments ";" "--"
|
||||||
|
|
||||||
(set-template default short)
|
(set-template default short)
|
||||||
|
|
||||||
|
(define (ls) (report))
|
||||||
|
|
||||||
|
(define (ls:wip) (report workflow ~ wip))
|
||||||
|
|
||||||
|
(define (stage) (fixme:stage:show))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ readConfig = do
|
||||||
try @_ @IOException (liftIO $ readFile conf)
|
try @_ @IOException (liftIO $ readFile conf)
|
||||||
<&> fromRight mempty
|
<&> fromRight mempty
|
||||||
<&> parseTop
|
<&> parseTop
|
||||||
<&> fromRight mempty
|
>>= either (error.show) pure
|
||||||
|
|
||||||
pure $ mconcat w
|
pure $ mconcat w
|
||||||
|
|
||||||
|
@ -318,7 +318,6 @@ runTop forms = do
|
||||||
|
|
||||||
entry $ bindMatch "define-template" $ nil_ $ \case
|
entry $ bindMatch "define-template" $ nil_ $ \case
|
||||||
[SymbolVal who, IsSimpleTemplate body ] -> do
|
[SymbolVal who, IsSimpleTemplate body ] -> do
|
||||||
-- notice $ red "define-template" <+> pretty who <+> pretty what
|
|
||||||
t <- lift $ asks fixmeEnvTemplates
|
t <- lift $ asks fixmeEnvTemplates
|
||||||
atomically $ modifyTVar t (HM.insert who (Simple (SimpleTemplate body)))
|
atomically $ modifyTVar t (HM.insert who (Simple (SimpleTemplate body)))
|
||||||
|
|
||||||
|
|
|
@ -217,6 +217,7 @@ importFromLog fn = do
|
||||||
|
|
||||||
list_ :: (FixmePerks m, HasPredicate a) => Maybe Id -> a -> FixmeM m ()
|
list_ :: (FixmePerks m, HasPredicate a) => Maybe Id -> a -> FixmeM m ()
|
||||||
list_ tpl a = do
|
list_ tpl a = do
|
||||||
|
|
||||||
tpl <- asks fixmeEnvTemplates >>= readTVarIO
|
tpl <- asks fixmeEnvTemplates >>= readTVarIO
|
||||||
<&> HM.lookup (fromMaybe "default" tpl)
|
<&> HM.lookup (fromMaybe "default" tpl)
|
||||||
|
|
||||||
|
|
|
@ -537,6 +537,7 @@ with s1 as (
|
||||||
select m.hash as hash
|
select m.hash as hash
|
||||||
, cast(json_group_object(m.attr,m.value) as blob) as json
|
, cast(json_group_object(m.attr,m.value) as blob) as json
|
||||||
from fixmestagemod m
|
from fixmestagemod m
|
||||||
|
where not exists (select null from fixmestagedel d where d.hash = m.hash)
|
||||||
),
|
),
|
||||||
|
|
||||||
s2 as
|
s2 as
|
||||||
|
|
Loading…
Reference in New Issue