Skip to main content

module

Function module 

Source
pub fn module() -> ModuleDescriptor
Expand description

The module. The module: three read-only capabilities over the commit domain, plus the range judge.

use majordomus_cli::capability::builtin::commit::module;
use majordomus_cli::capability::Effect;
// nothing here writes the repository; making a commit stays with the person
assert!(module().capabilities.iter().all(|e| e.capability.execution.effect == Effect::Read));