Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
term: Rename print_inline to print
✗ CI failure Fintan Halpenny committed 1 month ago
commit d45cd40f545d7ce724fd84c21b7dd08320df81ce
parent 4cbca3c9497bddadefa11c43454124e875e71628
1 failed (1 total) View logs
4 files changed +8 -6
modified crates/radicle-cli/src/commands/id.rs
@@ -519,7 +519,7 @@ fn print_diff(

    if let Some(modified) = diff.modified().next() {
        let diff = modified.diff.to_unified_string()?;
-
        term::print_inline(diff);
+
        term::print(diff);
    } else {
        term::println(term::format::italic("No changes."));
    }
modified crates/radicle-cli/src/commands/inspect.rs
@@ -234,7 +234,7 @@ fn refs(repo: &radicle::storage::git::Repository) -> anyhow::Result<()> {
        }
    }

-
    term::print_inline(tree(refs));
+
    term::print(tree(refs));

    Ok(())
}
modified crates/radicle-cli/src/commands/node/control.rs
@@ -170,7 +170,7 @@ pub fn logs(lines: usize, follow: Option<time::Duration>, profile: &Profile) ->
    }
    tail.reverse();

-
    term::print_inline(term::format::dim(String::from_utf8_lossy(&tail)));
+
    term::print(term::format::dim(String::from_utf8_lossy(&tail)));

    if let Some(timeout) = follow {
        file.seek(SeekFrom::End(0))?;
@@ -184,7 +184,7 @@ pub fn logs(lines: usize, follow: Option<time::Duration>, profile: &Profile) ->
            if len == 0 {
                thread::sleep(time::Duration::from_millis(250));
            } else {
-
                term::print_inline(term::format::dim(line));
+
                term::print(term::format::dim(line));
            }
        }
    }
modified crates/radicle-term/src/io.rs
@@ -170,10 +170,12 @@ pub fn blank() {
/// Print a line to stdout, silently handling broken pipe errors.
///
/// This is the primary output function for the CLI. All user-facing stdout
-
/// output should go through this function (or [`print_inline`]) to avoid
+
/// output should go through this function (or [`print`]) to avoid
/// panicking on broken pipes (e.g. `rad config | head`).
///
/// See: <https://github.com/rust-lang/rust/issues/62569>
+
///
+
/// [`print`]: self::print
pub fn println(msg: impl fmt::Display) {
    use io::Write;

@@ -189,7 +191,7 @@ pub fn println(msg: impl fmt::Display) {
/// errors.
///
/// See [`self::println`] for details.
-
pub fn print_inline(msg: impl fmt::Display) {
+
pub fn print(msg: impl fmt::Display) {
    use io::Write;

    let mut stdout = io::stdout().lock();