Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding cli commands to view the status of
background
shell commands. When a call tobackground [cmd]
is executed, mm stores the associated command alongside a sequential ID and some information (time start, time end, stdout, stderr, running). When the process exits, the stdout and stderr outputs are saved and the process is marked as complete. Users can then grab the stdout or stderr of a completed process. There is a limit of 50 background processes stored in the status table. When the 51st is created, the oldest (sorted by time of the process ending) will be removed from the table and stdout / stderr can no longer be accessed usingbackground-output
. All outputs of background processes are also logged to the logger on level info.Commands changed:
background
Commands added:
background-status [id]
id
is provided, only return the status of that entry (if exists)clear background-status
background-output <id>
background-error <id>