Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/docker/docker-agent
/ WithWorkingDir
Function
WithWorkingDir
pkg/session/session.go:793–797 ·
view source on GitHub ↗
(workingDir string)
Source
from the content-addressed store, hash-verified
791
}
792
793
func
WithWorkingDir(workingDir string) Opt {
794
return
func
(s *Session) {
795
s.WorkingDir = workingDir
796
}
797
}
798
799
func
WithTitle(title string) Opt {
800
return
func
(s *Session) {
Callers
13
runDockerAgent
Function · 0.92
TestApp_NewSession_PreservesWorkingDir
Function · 0.92
TestApp_NewSession_PreservesAllSessionFlags
Function · 0.92
NewSession
Method · 0.92
CreateSession
Method · 0.92
TestRunStream_AddEnvironmentInfo_DoesNotPolluteSession
Function · 0.92
TestResolveSessionPathUsesSessionRoots
Function · 0.92
NewSession
Method · 0.92
TestResumeWorkingDir
Function · 0.92
buildSessionOpts
Method · 0.92
TestWithWorkingDir_SetsAllowedDirectories
Function · 0.70
TestNewSession_AllOptionsApplied
Function · 0.70
Calls
no outgoing calls
Tested by
8
TestApp_NewSession_PreservesWorkingDir
Function · 0.74
TestApp_NewSession_PreservesAllSessionFlags
Function · 0.74
TestRunStream_AddEnvironmentInfo_DoesNotPolluteSession
Function · 0.74
TestResolveSessionPathUsesSessionRoots
Function · 0.74
TestResumeWorkingDir
Function · 0.74
TestWithWorkingDir_SetsAllowedDirectories
Function · 0.56
TestNewSession_AllOptionsApplied
Function · 0.56
TestNewSession_ConsistencyBetweenInitialAndSpawned
Function · 0.56