MCPcopy Index your code
hub / github.com/github/copilot-sdk / validateSessionFSConfig

Function validateSessionFSConfig

go/client.go:80–94  ·  view source on GitHub ↗
(config *SessionFSConfig)

Source from the content-addressed store, hash-verified

78}
79
80func validateSessionFSConfig(config *SessionFSConfig) error {
81 if config == nil {
82 return nil
83 }
84 if config.InitialWorkingDirectory == "" {
85 return errors.New("SessionFS.InitialWorkingDirectory is required")
86 }
87 if config.SessionStatePath == "" {
88 return errors.New("SessionFS.SessionStatePath is required")
89 }
90 if config.Conventions != rpc.SessionFSSetProviderConventionsPosix && config.Conventions != rpc.SessionFSSetProviderConventionsWindows {
91 return errors.New("SessionFS.Conventions must be either 'posix' or 'windows'")
92 }
93 return nil
94}
95
96// Client manages the connection to the Copilot CLI server and provides session management.
97//

Callers 1

NewClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…