#[program]Expand description
Blessed preset: CLI application with Markdown docs.
Combines #[cli] + #[markdown] into a single attribute.
Markdown docs are included when the feature is enabled, and gracefully
omitted otherwise.
Named program instead of cli to avoid collision with the existing
#[cli] attribute macro.
§Example
ⓘ
use server_less::program;
struct MyApp;
#[program(name = "myctl", version = "1.0.0")]
impl MyApp {
pub fn create_user(&self, name: String) { println!("Created {}", name); }
pub fn list_users(&self) { println!("Listing users..."); }
}§Options
name- CLI application nameversion- CLI version stringabout- CLI descriptionmarkdown- Toggle Markdown docs generation (default: true)