on master help sign in
Merge pull request #783 from obsidiansystems/ts-ob-run-call-to-action

Add prompts to successful ob init logs

commitf8240dbf0ea9813e4d55aef49fc412e160483d0f authorElliot Cameron <3noch@users.noreply.github.com> dateThu 23 Jul 2020, 17:52 (6 years ago) parent9acce712fafd69
1 file changed+6
lib/command/src/Obelisk/Command/Project.hs+6
lib/command/src/Obelisk/Command/Project.hs+6
@@ -137,6 +137,12 @@ initProject source force = withSystemTempDirectory "ob-init" $ \tmpDir -> do
137137 let configDir = "config"
138138 createDirectoryIfMissing False configDir
139139 mapM_ (createDirectoryIfMissing False . (configDir </>)) ["backend", "common", "frontend"]
140+ putLog Notice $ T.intercalate "\n"
141+ [ "An obelisk project has been successfully initialized. Next steps:"
142+ , " 'ob run': Start a development server"
143+ , " 'ob watch': Watch for changes without starting a server"
144+ , " 'ob repl': Load your project into GHCi"
145+ ]
140146
141147callHandoffOb
142148 :: MonadObelisk m