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

Function serve_banner

cli/src/ui.rs:65–75  ·  view source on GitHub ↗

The `edge serve` banner.

(port: u16, dir: &Path)

Source from the content-addressed store, hash-verified

63
64/// The `edge serve` banner.
65pub fn serve_banner(port: u16, dir: &Path) {
66 let url = format!("http://localhost:{port}");
67 let path = dir.display().to_string();
68 if plain() {
69 println!(" {url}");
70 println!(" watching {path}");
71 } else {
72 println!(" {}", url.cyan());
73 println!(" {} {}", "watching".dimmed(), path.dimmed());
74 }
75}
76
77/// Print a script's traceback to stderr, verbatim from the runtime.
78pub fn traceback(msg: &str) {

Callers 1

runFunction · 0.85

Calls 2

plainFunction · 0.85
displayMethod · 0.80

Tested by

no test coverage detected