MCPcopy Create free account
hub / github.com/bootc-dev/bootc / medium_visibility_warning

Function medium_visibility_warning

crates/lib/src/utils.rs:150–158  ·  view source on GitHub ↗

Output a warning message that we want to be quite visible. The process (thread) execution will be delayed for a short time.

(s: &str)

Source from the content-addressed store, hash-verified

148/// Output a warning message that we want to be quite visible.
149/// The process (thread) execution will be delayed for a short time.
150pub(crate) fn medium_visibility_warning(s: &str) {
151 anstream::eprintln!(
152 "{}{s}{}",
153 anstyle::AnsiColor::Red.render_fg(),
154 anstyle::Reset.render()
155 );
156 // When warning, add a sleep to ensure it's seen
157 std::thread::sleep(std::time::Duration::from_secs(1));
158}
159
160/// Call an async task function, and write a message to stderr
161/// with an automatic spinner to show that we're not blocked.

Callers 3

install_to_diskFunction · 0.85
warn_on_host_rootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected