This commit is contained in:
voidlizard 2025-02-21 09:32:22 +03:00
parent ba5e122392
commit ed7f18154f
4 changed files with 28 additions and 16 deletions

View File

@ -38,6 +38,7 @@ keymanEntries = do
entry $ bindMatch "hbs2:keyman:config" $ \_ -> do entry $ bindMatch "hbs2:keyman:config" $ \_ -> do
mkForm "dict" <$> keymanGetConfig mkForm "dict" <$> keymanGetConfig
args [ arg "string" "keyring-data"] $
entry $ bindMatch "hbs2:keyman:keys:add" $ \case entry $ bindMatch "hbs2:keyman:keys:add" $ \case
[ LitStrVal ke ] -> do [ LitStrVal ke ] -> do
conf <- keymanGetConfig @C conf <- keymanGetConfig @C

7
hbs2-git3/bf6/hbs2-git Executable file
View File

@ -0,0 +1,7 @@
#! /usr/bin/env -S bf6 file
(run:proc:attached hbs2-git3 (cdr *args))

View File

@ -133,7 +133,8 @@ compression ; prints compression level
[ StringLike s ] -> display $ mkStr @C (show $ pretty $ gitNormaliseRef (fromString s)) [ StringLike s ] -> display $ mkStr @C (show $ pretty $ gitNormaliseRef (fromString s))
_ -> throwIO (BadFormException @C nil) _ -> throwIO (BadFormException @C nil)
entry $ bindMatch "test:hbs2:peer:poke" $ nil_ $ \syn -> do brief "checks if hbs2-peer available"
$ entry $ bindMatch "hbs2:peer:poke" $ nil_ $ \syn -> do
peer <- getClientAPI @PeerAPI @UNIX peer <- getClientAPI @PeerAPI @UNIX
r <- callRpcWaitRetry @RpcPoke (TimeoutSec 0.5) 2 peer () >>= orThrowUser "hbs2-peer not found" r <- callRpcWaitRetry @RpcPoke (TimeoutSec 0.5) 2 peer () >>= orThrowUser "hbs2-peer not found"
notice $ pretty r notice $ pretty r

View File

@ -28,4 +28,7 @@ stdenv.mkDerivation {
mkdir -p $out/bin mkdir -p $out/bin
cp ${p}/bin/${name} $out/bin cp ${p}/bin/${name} $out/bin
''; '';
} }