godmode-core 0.8.1

Core library for godmode: task graphs, session state, dispatch, and Claude Code plugin integrations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Explicit preview-versus-apply mode for mutating operations.

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum WriteMode {
    Preview,
    Apply,
}

impl WriteMode {
    /// Returns `true` when mutations should be applied.
    pub fn is_apply(self) -> bool {
        matches!(self, Self::Apply)
    }
}