1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! `rk license`: print the terms the binary carries. use crate::embedded; use crate::error::RkError; use crate::output::Output; /// Print the root statement, then both license texts. /// /// # Errors /// /// Never fails; the signature matches the dispatch table. pub fn run() -> Result<(), RkError> { let out = Output::human(); out.result_raw(embedded::LICENSE); out.result_line(""); out.result_line("--- LICENSE-MIT ---"); out.result_line(""); out.result_raw(embedded::LICENSE_MIT); out.result_line(""); out.result_line("--- LICENSE-CC-BY-4.0 ---"); out.result_line(""); out.result_raw(embedded::LICENSE_CC_BY); Ok(()) }