portaki-cli 6.3.0

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

use portaki_sdk::prelude::*;

mod commands;
mod config;
mod guest;
mod host;
mod ids;
mod queries;

// Re-exported so `tests/` can reach them: an integration test links the crate from outside.
pub use commands::{update_config, UpdateConfigArgs};
pub use config::ModuleConfig;
pub use guest::render_guest_home_card;
pub use host::render_host_main;
pub use queries::get_config;

portaki_sdk::portaki_module!(
    id = "{{MODULE_NAME}}",
    display_name_key = "module.displayName",
    description_key = "module.description",
    author = "Portaki",
);

#[portaki_sdk::capability(required, id = "core.storage")]
pub const STORAGE: CapabilityId = capability::core::STORAGE;

#[portaki_sdk::entity(schema_version = 1)]
pub struct SampleItem {
    pub id: uuid::Uuid,
    pub title: String,
}