Skip to main content

cmd_init

Function cmd_init 

Source
pub fn cmd_init(kind: String) -> Result<(), Box<dyn Error>>
Expand description

pnm did-templates init <kind> / cnm did-templates init <kind>.

Emit a starter template on stdout by forking an embedded built-in. The operator can redirect to a file, edit, and upload. kind is a canonical built-in name (didcomm-mediator, did-host-http, did-host-http-didcomm, did-host-didcomm, …) or a short role alias — see [resolve_builtin_kind].