Skip to content

Commit

Permalink
fix: Fix persistent state mode for commands that execute templates
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 27, 2025
1 parent 7a2fa6e commit 5cbbd6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/ignoredcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (c *Config) newIgnoredCmd() *cobra.Command {
Args: cobra.NoArgs,
RunE: c.makeRunEWithSourceState(c.runIgnoredCmd),
Annotations: newAnnotations(
persistentStateModeReadOnly,
persistentStateModeReadMockWrite,
),
}

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/sourcepathcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (c *Config) newSourcePathCmd() *cobra.Command {
ValidArgsFunction: c.targetValidArgs,
RunE: c.runSourcePathCmd,
Annotations: newAnnotations(
persistentStateModeReadOnly,
persistentStateModeReadMockWrite,
),
}

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/targetpathcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (c *Config) newTargetPathCmd() *cobra.Command {
Example: example("target-path"),
RunE: c.runTargetPathCmd,
Annotations: newAnnotations(
persistentStateModeReadOnly,
persistentStateModeReadMockWrite,
),
}

Expand Down

0 comments on commit 5cbbd6e

Please sign in to comment.