Skip to content

Commit 9d04d36

Browse files
authored
Print the purs commands that spago is calling (#145)
1 parent 9d951fc commit 9d04d36

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

β€Žapp/Spago/Purs.hsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ version = do
8181

8282
runWithOutput :: T.Text -> T.Text -> T.Text -> IO ()
8383
runWithOutput command success failure = do
84+
echo $ "Running command: `" <> command <> "`"
8485
T.shell command T.empty >>= \case
8586
T.ExitSuccess -> echo success
8687
T.ExitFailure _ -> die failure

β€Žtemplates/testMain.pursβ€Ž

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import Prelude
55
import Effect (Effect)
66
import Effect.Console (log)
77

8-
import Main as Main
9-
108
main :: Effect Unit
119
main = do
12-
Main.main
10+
log "🍝"
1311
log "You should add some tests."

β€Žtest/fixtures/run-output.txtβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
🍝
22
Installation complete.
3+
Running command: `purs compile ".spago/console/v4.2.0/src/**/*.purs" ".spago/effect/v2.0.1/src/**/*.purs" ".spago/prelude/v4.1.0/src/**/*.purs" "src/**/*.purs" "test/**/*.purs"`
34
Build succeeded.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
🍝
22
You should add some tests.
33
Installation complete.
4+
Running command: `purs compile ".spago/console/v4.2.0/src/**/*.purs" ".spago/effect/v2.0.1/src/**/*.purs" ".spago/prelude/v4.1.0/src/**/*.purs" "src/**/*.purs" "test/**/*.purs"`
45
Build succeeded.
56
Tests succeeded.

0 commit comments

Comments
Β (0)