mirror of https://github.com/voidlizard/hbs2
wip, refactor
This commit is contained in:
parent
234e43b62f
commit
0d798fd742
|
@ -30,19 +30,15 @@ fixme-file-comments "*.scm" ";"
|
||||||
|
|
||||||
fixme-comments ";" "--"
|
fixme-comments ";" "--"
|
||||||
|
|
||||||
;(fixme-play-log-action
|
(update-action
|
||||||
; (import ".fixme-new/log")
|
(import-git-logs ".fixme-new/log")
|
||||||
;)
|
|
||||||
|
|
||||||
(fixme-play-log-action
|
|
||||||
(play-git-log-file-all ".fixme-new/log")
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(fixme-play-log-action
|
(update-action
|
||||||
(export ".fixme-new/fixme.log")
|
(export ".fixme-new/fixme.log")
|
||||||
)
|
)
|
||||||
|
|
||||||
(fixme-play-log-action
|
(update-action
|
||||||
(hello kitty)
|
(hello kitty)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -328,6 +328,7 @@ exportToLog fn = do
|
||||||
|
|
||||||
compactStorageClose sto
|
compactStorageClose sto
|
||||||
|
|
||||||
|
cleanStage
|
||||||
|
|
||||||
importFromLog :: FixmePerks m => CompactStorage HbSync -> FixmeM m ()
|
importFromLog :: FixmePerks m => CompactStorage HbSync -> FixmeM m ()
|
||||||
importFromLog sto = do
|
importFromLog sto = do
|
||||||
|
@ -624,15 +625,15 @@ runForms ss = for_ ss $ \s -> do
|
||||||
|
|
||||||
atomically $ modifyTVar t (<> [action])
|
atomically $ modifyTVar t (<> [action])
|
||||||
|
|
||||||
ListVal (SymbolVal "fixme-play-log-action" : xs) -> do
|
ListVal (SymbolVal "update-action" : xs) -> do
|
||||||
debug $ "fixme-play-log-action" <+> pretty xs
|
debug $ "update-action" <+> pretty xs
|
||||||
env <- ask
|
env <- ask
|
||||||
t <- asks fixmeEnvReadLogActions
|
t <- asks fixmeEnvReadLogActions
|
||||||
let action = ReadLogAction @c $ \_ -> liftIO (withFixmeEnv env (runForms xs))
|
let action = ReadLogAction @c $ \_ -> liftIO (withFixmeEnv env (runForms xs))
|
||||||
atomically $ modifyTVar t (<> [action])
|
atomically $ modifyTVar t (<> [action])
|
||||||
|
|
||||||
ListVal [SymbolVal "play-git-log-file-all", StringLike fn] -> do
|
ListVal [SymbolVal "import-git-logs", StringLike fn] -> do
|
||||||
warn $ red "play-git-log-file-all" <+> pretty fn
|
warn $ red "import-git-logs" <+> pretty fn
|
||||||
scanGitLogLocal fn importFromLog
|
scanGitLogLocal fn importFromLog
|
||||||
|
|
||||||
ListVal [SymbolVal "import", StringLike fn] -> do
|
ListVal [SymbolVal "import", StringLike fn] -> do
|
||||||
|
|
Loading…
Reference in New Issue