MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / done

Method done

cli/src/ui.rs:144–152  ·  view source on GitHub ↗

Stop the spinner and print a `(successful) {msg}` line in green.

(self, msg: &str)

Source from the content-addressed store, hash-verified

142impl Spinner {
143 /// Stop the spinner and print a `(successful) {msg}` line in green.
144 pub fn done(self, msg: &str) {
145 // Drop stops the thread and clears the line; the result line goes right after.
146 drop(self);
147 if plain() {
148 eprintln!(" (successful) {msg}");
149 } else {
150 eprintln!(" {} {msg}", "(successful)".green());
151 }
152 }
153
154 /// Stop the spinner and print an `(unsuccessful) {msg}` line in red.
155 pub fn fail(self, msg: &str) {

Callers 1

runFunction · 0.80

Calls 1

plainFunction · 0.85

Tested by

no test coverage detected