1. 10 Aug, 2021 1 commit
  2. 20 Jun, 2021 1 commit
  3. 13 May, 2019 1 commit
  4. 19 Feb, 2019 1 commit
    • Steven Allen's avatar
      cli: get rid of exit channel · 6a12eea7
      Steven Allen authored
      It wasn't a reliable way to determine if the command was "done". We need to wait
      for run, post-run, etc. to finish first.
      
      * Fixes #143
      
      This commit:
      
      1. Removes the exit channel from the CLI response emitter.
      2. Adds a `Status()` function to the `cli.ResponseEmitter` as a replacement
         for (1).
      3. Renames `Exit(code)` to `SetStatus(code)`. This new function doesn't
         immediately _do_ anything other than set the status.
      4. Make sure to wait for _everything_ to finish before returning from `cli.Run`.
      6a12eea7