Skip to content

Commit 6298a66

Browse files
committed
feat(list): Change the way important informational messages are highlighted during display, to use [NOTE] and [WARNING].
These catch the eye better, and they have the added benefit of having ligatures in some typefaces.
1 parent 959dc5f commit 6298a66

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/clipboard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn copy_str_to_clipboard(contents: &str) -> Result<()> {
2727
.map_err(|_| anyhow!("unable to set clipboard contents"))?;
2828

2929
eprintln!();
30-
eprintln!("Note: The output has been copied to the clipboard!");
30+
eprintln!("[NOTE] The output has been copied to the clipboard!");
3131

3232
// https://github.com/alacritty/copypasta/issues/49
3333
if NON_PERSISTENT_CLIPBOARD_OSES.contains(&OS) {

src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fn main() -> Result<()> {
130130

131131
// Automatically run a `git fetch` unless this functionality is disabled
132132
if !no_auto_fetch && !run_git_fetch(repo_dir) {
133-
eprintln!("Note: Unable to run the automatic `git fetch` operation.");
133+
eprintln!("[WARNING] Unable to run the automatic `git fetch` operation.");
134134
eprintln!(
135135
"Attempting to proceed anyway, but beware that the results may be out-of-date \
136136
with the remotes."
@@ -150,7 +150,7 @@ fn main() -> Result<()> {
150150

151151
if revspec != revspec_specified.trim() {
152152
eprintln!(
153-
"Note: Some branches have been replaced with their upstream remote variants \
153+
"[NOTE] Some branches have been replaced with their upstream remote variants \
154154
in the revspec to ensure up-to-date data is collected."
155155
);
156156
eprintln!("To disable this functionality, please use `--no-auto-upstream`.");
@@ -292,7 +292,7 @@ fn main() -> Result<()> {
292292

293293
// Automatically run a `git fetch` unless this functionality is disabled
294294
if !no_auto_fetch && !run_git_fetch(repo_dir) {
295-
eprintln!("Note: Unable to run the automatic `git fetch` operation.");
295+
eprintln!("[WARNING] Unable to run the automatic `git fetch` operation.");
296296
eprintln!(
297297
"Attempting to proceed anyway, but beware that the results may be out-of-date \
298298
with the remotes."
@@ -318,7 +318,7 @@ fn main() -> Result<()> {
318318

319319
if object_a != object_a_specified.trim() || object_b != object_b_specified.trim() {
320320
eprintln!(
321-
"Note: Some branches have been replaced with their upstream remote variants \
321+
"[NOTE] Some branches have been replaced with their upstream remote variants \
322322
to ensure up-to-date data is collected."
323323
);
324324
eprintln!("To disable this functionality, please use `--no-auto-upstream`.");
@@ -664,7 +664,7 @@ fn main() -> Result<()> {
664664

665665
// Automatically run a `git fetch` unless this functionality is disabled
666666
if !no_auto_fetch && !run_git_fetch(repo_dir) {
667-
eprintln!("Note: Unable to run the automatic `git fetch` operation.");
667+
eprintln!("[WARNING] Unable to run the automatic `git fetch` operation.");
668668
eprintln!(
669669
"Attempting to proceed anyway, but beware that the results may be out-of-date \
670670
with the remotes."

0 commit comments

Comments
 (0)