cli: Avoid trailing spaces on list

Use '-'s to avoid trailing spaces on items when listing patches.

The spaces are used as part of the format with colouring.  However they
are a nuisance to support in testing given the autoformatting of editors
to remove them.

Signed-off-by: Slack Coder <slackcoder@server.ky>
This commit is contained in:
Slack Coder 2023-01-10 12:36:03 -05:00 committed by Alexis Sellier
parent a6d59b3c0e
commit 284aadc37c
No known key found for this signature in database
2 changed files with 10 additions and 4 deletions

View File

@ -53,12 +53,12 @@ It will now be listed as one of the project's open patches.
``` ```
$ rad patch $ rad patch
YOU PROPOSED - YOU PROPOSED -
define power requirements 3b1f58414e5 R0 7939a9e (flux-capacitor-power) ahead 1, behind 0 define power requirements 3b1f58414e5 R0 7939a9e (flux-capacitor-power) ahead 1, behind 0
└─ * opened by z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi (you) [..] └─ * opened by z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi (you) [..]
OTHERS PROPOSED - OTHERS PROPOSED -
Nothing to show. Nothing to show.

View File

@ -39,7 +39,10 @@ pub fn run(
} }
} }
term::blank(); term::blank();
term::print(term::format::badge_positive("YOU PROPOSED")); term::print(format!(
"-{}-",
term::format::badge_secondary("YOU PROPOSED")
));
if own.is_empty() { if own.is_empty() {
term::blank(); term::blank();
@ -52,7 +55,10 @@ pub fn run(
} }
} }
term::blank(); term::blank();
term::print(term::format::badge_secondary("OTHERS PROPOSED")); term::print(format!(
"-{}-",
term::format::badge_secondary("OTHERS PROPOSED")
));
if other.is_empty() { if other.is_empty() {
term::blank(); term::blank();