MCPcopy Create free account
hub / github.com/diillson/chatcli / DeleteSession

Method DeleteSession

cli/session_manager.go:359–365  ·  view source on GitHub ↗

DeleteSession apaga um arquivo de sessão.

(name string)

Source from the content-addressed store, hash-verified

357
358// DeleteSession apaga um arquivo de sessão.
359func (sm *SessionManager) DeleteSession(name string) error {
360 filePath := sm.getSessionPath(name)
361 if _, err := os.Stat(filePath); os.IsNotExist(err) {
362 return fmt.Errorf("sessão '%s' não encontrada", name)
363 }
364 return os.Remove(filePath)
365}

Callers

nothing calls this directly

Calls 3

getSessionPathMethod · 0.95
ErrorfMethod · 0.80
RemoveMethod · 0.65

Tested by

no test coverage detected