//! Starting a command as the terminal does: the commands built into the //! system, or an installed app by name, as a std program is started //! (`abi::STD_START` and a start message), its stdin, stdout and stderr on //! channels of their own and its exit code watched. The terminal starts //! them for the person at the screen, the p2p service for a contact allowed //! to run commands here (`docs/terminal-and-agent.md`): the same commands, //! and nothing else, either way. use alloc::string::String; use alloc::vec::Vec; use pinnacle_json::Value; use pinnacle_records::start::{self, Start}; use pinnacle_rt::abi::STD_START; use pinnacle_rt::fs::File; use pinnacle_rt::{Channel, Handle, Process, fs}; /// The commands that come with the system, and what each does: `help` /// lists them. pub const COMMANDS: &[(&str, &str)] = &[ ("help", "These commands"), ("info", "This device: cores, memory, time up"), ("devices", "The hardware found, and the driver of each"), ("echo", "Its words, back"), ("std-check", "Rust's std at work: a plain program's output"), ("ask", "Three questions, answered here"), ("palette", "The system's colours, as an image"), ( "frits", "Frits scripts: frits run