feedback 0.1.0.2 → 0.1.0.3
raw patch · 2 files changed
+9/−5 lines, 2 files
Files
- feedback.cabal +1/−1
- src/Feedback/Loop.hs +8/−4
feedback.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: feedback-version: 0.1.0.2+version: 0.1.0.3 synopsis: Declarative feedback loop manager homepage: https://github.com/NorfairKing/feedback#readme bug-reports: https://github.com/NorfairKing/feedback/issues
src/Feedback/Loop.hs view
@@ -55,16 +55,20 @@ -- being killed by the user. mainThreadId <- myThreadId - -- Make sure the user knows what's happening.- firstBegin <- getZonedTime- putTimedChunks terminalCapabilities firstBegin [indicatorChunk "preparing for first run"]- -- Get the flags and the environment up front, because they don't change -- anyway. -- This is also important because autocompletion won't work if we output -- something before parsing the flags. flags <- getFlags env <- getEnvironment++ -- Make sure the user knows what's happening.+ -- Note that this this must occur after the getFlags so that nothing is+ -- output before the autocompletion options can be activated.+ -- Otherwise the autocompletion output will fail to parse and autocomplete+ -- breaks.+ firstBegin <- getZonedTime+ putTimedChunks terminalCapabilities firstBegin [indicatorChunk "preparing for first run"] -- Get the initial configuration so that we know if we need to run a hook after the first run. mInitialConfiguration <- getConfiguration flags env