Skip to main content

ruvix_shell/commands/
mod.rs

1//! Command implementations for the RuVix debug shell.
2//!
3//! Each command is implemented in its own submodule for maintainability.
4
5pub mod caps;
6pub mod cpu;
7pub mod info;
8pub mod mem;
9pub mod perf;
10pub mod proofs;
11pub mod queues;
12pub mod tasks;
13pub mod vectors;
14pub mod witness;
15
16/// Help command implementation.
17pub mod help {
18    use alloc::string::String;
19
20    /// Execute the help command.
21    #[must_use]
22    pub fn execute() -> String {
23        String::from(
24            r"RuVix Debug Shell Commands:
25
26  help, h, ?         Show this help message
27  info, version      Kernel version, boot time, uptime
28  mem, memory        Memory statistics
29  tasks, ps          Task listing
30  caps [task_id]     Capability table dump (optional: filter by task)
31  queues, q          Queue statistics
32  vectors, vec, v    Vector store info
33  proofs, proof, p   Proof statistics
34  cpu, smp           CPU info for SMP
35  witness [n]        Witness log viewer (default: 10 entries)
36  perf, counters     Performance counters
37  trace [on|off]     Syscall tracing toggle
38  reboot, restart    Trigger system reboot
39
40Type a command name for more information.",
41        )
42    }
43}