Improve user experience of interactive mode #136
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.
Description
Use
cmd.Cmdfor interactive mode. This gives some benefits over doing things manually:helpcommand for freeshow_jobwhich now expects the ID as argument instead of separately prompting for it (as a bonus, there is even tab completion for the argument :) ).While working on this, also make the output a bit nicer:
list_successful_jobs).Cmd.columnizefor lists of job IDs. Results in much nicer, more readable output.Note that calling
show_jobwithout argument now results in an error (expects ID as argument). I don't consider this as breaking change w.r.t. versioning, though, as it only affects the interactive command, i.e. no existing script/config or the like should break due to this change.Resolves #47.
Resolves #135.
Do not merge before