/ firmware / src / programs / coreutils / hostname.rs
hostname.rs
1  use crate::services::identity;
2  use alloc::string::String as AllocString;
3  use core::fmt::Write;
4  
5  pub fn run() -> AllocString {
6      let mut out = AllocString::new();
7      let _ = write!(out, "{}\r\n", identity::hostname());
8      out
9  }