MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / ClearChatDirection

Function ClearChatDirection

internal/cli/chat_direction_state.go:95–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func ClearChatDirection() error {
96 path, err := chatDirectionPath()
97 if err != nil {
98 return nil
99 }
100 if err := os.Remove(path); err != nil && !os.IsNotExist(err) {
101 return fmt.Errorf("could not remove chat direction file %s: %w", path, err)
102 }
103 return nil
104}
105
106func VerifyChatDirectionHeld() error {
107 if !ChatDirectionOn() {

Callers 3

TestChatFramingByAuthorFunction · 0.92
newChatArmCmdFunction · 0.92
newChatDisarmCmdFunction · 0.92

Calls 2

chatDirectionPathFunction · 0.85
RemoveMethod · 0.65

Tested by 1

TestChatFramingByAuthorFunction · 0.74