portaki-cli 3.1.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.",
    );
    // `list` plutôt que `next` : pour `docs`, ces deux commandes ne sont pas un conseil sur la
    // suite, elles sont tout ce que la commande a à dire.
    ui::list(
        "commands",
        &[
            (
                "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(())
}