portaki-cli 8.7.0

Portaki module CLI (portaki) — init, build, lint, test, and OCI publish
//! Default Portaki module template.

mod config;
mod guest;
mod host;

// Re-exported so `tests/` can reach them: an integration test links the crate from outside.
pub use config::ModuleConfig;
pub use guest::render_guest_home_card;
pub use host::render_host_main;

portaki_sdk::portaki_module!(
    id = "{{MODULE_NAME}}",
    display_name_key = "module.displayName",
    description_key = "module.description",
    author = "{{AUTHOR_NAME}}",
    author_url = "https://github.com/TODO",
    module_type = ModuleType::Community,
    icon = IconName::Grid,
    maturity = Maturity::Beta,
);

// `core.storage` needs no declaration: `portaki build` adds it for an entity, a config or the
// `kv` / `repo` features.
#[portaki_sdk::entity(schema_version = 1)]
pub struct SampleItem {
    pub id: uuid::Uuid,
    pub title: String,
}