portaki-cli 2.3.0

Portaki module CLI (portaki) — init, build, lint, test, and OCI publish
//! `portaki docs` — prints how to open local API docs (no fake server).

use anyhow::Result;
use clap::Parser;

use crate::ui;

#[derive(Debug, Parser)]
/// Arguments for `portaki docs`.
pub struct DocsArgs {}

/// Prints documentation commands — does not start a docs server.
pub fn run(_args: DocsArgs) -> Result<()> {
    ui::header(
        "portaki docs",
        "There is no docs server — these two commands are the documentation.",
    );
    ui::next(&[
        (
            "cargo doc --workspace --no-deps --open",
            "the SDK's API, rendered from the source you compile against",
        ),
        (
            "portaki catalog --format json",
            "every SDUI primitive the host knows how to render",
        ),
    ]);
    ui::blank();
    Ok(())
}