portaki-cli 10.1.0

Portaki module CLI (portaki) — init, build, test, hosted sandbox, OCI publish and registry announcement
//! `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.",
    );
    // `list` rather than `next`: for `docs`, these two commands are not advice about what to do
    // next, they are everything the command has to say.
    ui::list(
        "commands",
        &[
            (
                "cargo doc --workspace --no-deps --open",
                "the SDK's API, rendered from the source you compile against",
            ),
            (
                "portaki catalog",
                "every SDUI primitive the host knows how to render",
            ),
        ],
    );
    ui::blank();
    Ok(())
}