From 4b1b97a6aa5d1328995ad191265fc08e6c527d4c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 5 Nov 2024 19:00:05 -1000 Subject: [PATCH] ;tools: just: add ghci-echo, ghcitui --- Justfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Justfile b/Justfile index 18bba4213..7730c496b 100644 --- a/Justfile +++ b/Justfile @@ -347,11 +347,19 @@ TESTING: @ghci *GHCIARGS: $STACKGHCI exec -- $GHCI $BUILDFLAGS {{ GHCIARGS }} hledger/Hledger/Cli.hs +# echo the full command that just ghci would run +@ghci-echo *GHCIARGS: + echo $STACKGHCI exec -- $GHCI $BUILDFLAGS {{ GHCIARGS }} hledger/Hledger/Cli.hs + # run ghci on hledger-lib + hledger with profiling/call stack information @ghci-prof *GHCIARGS: stack build --profile hledger --only-dependencies $STACKGHCI exec -- $GHCI $BUILDFLAGS -fexternal-interpreter -prof -fprof-auto {{ GHCIARGS }} hledger/Hledger/Cli.hs +# run ghcitui on hledger-lib + hledger +@ghcitui *GHCITUIARGS: + ghcitui --cmd "just ghci" + # # run ghci on hledger-lib + hledger + dev.hs script # @ghci-dev: # $STACKGHCI exec -- $GHCI $BUILDFLAGS -fno-warn-unused-imports -fno-warn-unused-binds dev.hs