(config *SessionFSConfig)
| 78 | } |
| 79 | |
| 80 | func 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 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…