Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dagger/container-use
/ functions
Functions
323 in github.com/dagger/container-use
⨍
Functions
323
◇
Types & classes
38
↓ 1 callers
Function
normalizeURL
(endpoint string)
repository/git.go:663
↓ 1 callers
Function
parseLogLevel
(levelStr string)
cmd/container-use/logger.go:16
↓ 1 callers
Function
promptForEnvironmentSelection
promptForEnvironmentSelection prompts the user to select from multiple environments
cmd/container-use/env_selection.go:52
↓ 1 callers
Method
saveState
(ctx context.Context, env *environment.Environment)
repository/git.go:298
↓ 1 callers
Function
setCurrentEnvironmentID
setCurrentEnvironmentID sets the current environment ID for single-tenant mode
mcpserver/singletenant.go:48
↓ 1 callers
Function
setCurrentEnvironmentSource
setCurrentEnvironmentSource sets the current environment source for single-tenant mode
mcpserver/singletenant.go:55
↓ 1 callers
Function
setupLogger
()
cmd/container-use/logger.go:31
↓ 1 callers
Function
setupSignalHandling
()
cmd/container-use/signal_unix.go:13
↓ 1 callers
Method
startServices
(ctx context.Context)
environment/service.go:30
↓ 1 callers
Function
truncate
(app *cobra.Command, s string, max int)
cmd/container-use/list.go:46
↓ 1 callers
Function
wrapToolWithClient
keeping this modular for now. we could move tool registration to RunStdioServer and collapse the 2 wrapTool functions.
mcpserver/tools.go:173
Method
Clear
Clear removes all key-value pairs
environment/config.go:88
Function
EnvironmentInfoToCallResult
(envInfo *environment.EnvironmentInfo)
mcpserver/tools.go:238
Method
FileDelete
FileDelete mirrors environment_file_delete MCP tool behavior
environment/integration/helpers.go:253
Method
Get
Get retrieves a full Environment with dagger client embedded for container operations. Use this when you need to perform container operations like run
repository/repository.go:244
Method
Get
(version int)
environment/state.go:68
Method
Get
(name string)
environment/config.go:46
Method
Init
Init initializes the model
cmd/container-use/agent/configure_ui.go:76
Method
LatestVersion
()
environment/state.go:60
Function
NewConfigureClaude
()
cmd/container-use/agent/configure_claude.go:19
Function
NewConfigureCodex
()
cmd/container-use/agent/configure_codex.go:19
Function
NewConfigureCursor
()
cmd/container-use/agent/configure_cursor.go:17
Function
NewConfigureGoose
()
cmd/container-use/agent/configure_goose.go:20
Function
NewConfigureQ
()
cmd/container-use/agent/configure_q.go:18
Function
NewMCPServerProcess
NewMCPServerProcess starts a new container-use MCP server process
cmd/container-use/stdio_test.go:30
Method
ReadWorktreeFile
ReadWorktreeFile reads directly from an environment's worktree
environment/integration/helpers.go:314
Function
TestCommitWorktreeChanges
Test the commitWorktreeChanges function
repository/git_test.go:132
Function
TestConfigureClaudeUpdateSettings
(t *testing.T)
cmd/container-use/agent/configure_test.go:28
Function
TestConfigureCodexUpdateConfig
(t *testing.T)
cmd/container-use/agent/configure_test.go:40
Function
TestConfigureCursorUpdateConfig
(t *testing.T)
cmd/container-use/agent/configure_test.go:88
Function
TestConfigureEditRulesFile
(t *testing.T)
cmd/container-use/agent/configure_test.go:10
Function
TestConfigureGooseUpdateConfig
(t *testing.T)
cmd/container-use/agent/configure_test.go:52
Function
TestConfigureQUpdateConfig
(t *testing.T)
cmd/container-use/agent/configure_test.go:69
Function
TestEnvironmentConfig_Load
TestEnvironmentConfig_Load verifies the best-effort loading behavior The Load method should gracefully handle missing files while still failing on act
environment/config_test.go:16
Function
TestEnvironmentConfig_PreservesShellOperators
TestEnvironmentConfig_PreservesShellOperators tests that shell operators like && are not escaped as unicode sequences when saving and loading configur
environment/config_test.go:114
Function
TestEnvironmentConfigurationPersists
TestEnvironmentConfigurationPersists verifies configuration persistence
environment/integration/integration_test.go:402
Function
TestEnvironmentIsolation
TestEnvironmentIsolation verifies that changes in one environment don't affect others
environment/integration/integration_test.go:63
Function
TestEnvironmentSelection
TestEnvironmentSelection tests the environment selection logic
environment/integration/environment_selection_test.go:14
Function
TestGitAuditTrail
TestGitAuditTrail verifies that all operations are tracked in git
environment/integration/integration_test.go:20
Function
TestGitCommandErrors
Git command error handling ensures we gracefully handle git failures
repository/git_test.go:15
Function
TestIsDockerDaemonError
(t *testing.T)
cmd/container-use/docker_errors_test.go:8
Function
TestLargeProjectPerformance
Large project performance ensures the system scales to real-world codebases
environment/integration/integration_test.go:185
Function
TestRepositoryApply
TestRepositoryApply tests applying an environment as staged changes (equivalent to merge --squash)
environment/integration/merge_test.go:65
Function
TestRepositoryApplyNonExistent
TestRepositoryApplyNonExistent tests applying a non-existent environment
environment/integration/merge_test.go:142
Function
TestRepositoryApplyWithConflicts
TestRepositoryApplyWithConflicts tests apply behavior when there are conflicts
environment/integration/merge_test.go:186
Function
TestRepositoryCheckout
TestRepositoryCheckout tests checking out an environment branch
environment/integration/repository_test.go:108
Function
TestRepositoryContention
(t *testing.T)
cmd/container-use/stdio_test.go:341
Function
TestRepositoryCreate
TestRepositoryCreate tests creating a new environment
environment/integration/repository_test.go:16
Function
TestRepositoryCreateFromGitRef
TestRepositoryCreateFromGitRef tests creating environments from specific git references
environment/integration/repository_test.go:172
Function
TestRepositoryDelete
TestRepositoryDelete tests deleting an environment
environment/integration/repository_test.go:83
Function
TestRepositoryDiff
TestRepositoryDiff tests retrieving changes between commits
environment/integration/repository_test.go:235
Function
TestRepositoryGet
TestRepositoryGet tests retrieving an existing environment
environment/integration/repository_test.go:36
Function
TestRepositoryList
TestRepositoryList tests listing all environments
environment/integration/repository_test.go:58
Function
TestRepositoryLog
TestRepositoryLog tests retrieving commit history for an environment
environment/integration/repository_test.go:133
Function
TestRepositoryMerge
TestRepositoryMerge tests merging an environment into the main branch
environment/integration/merge_test.go:17
Function
TestRepositoryMergeCompleted
TestRepositoryMergeCompleted tests merging the same environment multiple times This should result in fast-forward merges since the main branch doesn't
environment/integration/merge_test.go:217
Function
TestRepositoryMergeNonExistent
TestRepositoryMergeNonExistent tests merging a non-existent environment
environment/integration/merge_test.go:128
Function
TestRepositoryMergeWithConflicts
TestRepositoryMergeWithConflicts tests merge behavior when there are conflicts
environment/integration/merge_test.go:156
Function
TestRepositoryOpen
TestRepositoryOpen tests the Open function which initializes a Repository
repository/repository_test.go:15
Function
TestResolveEnvironmentID
(t *testing.T)
cmd/container-use/env_selection_test.go:11
Function
TestSelectiveFileStaging
Selective file staging ensures problematic files are automatically excluded from commits This tests the actual user-facing behavior: "I want to commit
repository/git_test.go:31
Function
TestSingleTenantEnvironmentStorage
(t *testing.T)
mcpserver/singletenant_test.go:7
Function
TestSingleTenantEnvironmentStorageEmpty
(t *testing.T)
mcpserver/singletenant_test.go:57
Function
TestSingleTenantRepositoryContention
(t *testing.T)
cmd/container-use/stdio_test.go:369
Function
TestSystemHandlesProblematicFiles
TestSystemHandlesProblematicFiles verifies edge cases don't break the system
environment/integration/integration_test.go:108
Function
TestVersionCommand
(t *testing.T)
cmd/container-use/version_test.go:11
Function
TestVersionParsing
(t *testing.T)
cmd/container-use/version_test.go:85
Function
TestWeirdUserScenarios
TestWeirdUserScenarios verifies edge case handling
environment/integration/integration_test.go:258
Function
TestWorktreeUpdatesAreVisibleAfterRebuild
TestWorktreeUpdatesAreVisibleAfterRebuild verifies file changes persist through rebuilds
environment/integration/integration_test.go:218
Method
Update
Update handles incoming messages and updates the model
cmd/container-use/agent/configure_ui.go:81
Method
View
View renders the interface
cmd/container-use/agent/configure_ui.go:109
Method
WithLock
WithLock executes a function while holding an exclusive lock for the specified lock type
repository/flock.go:78
Method
WithRLock
WithRLock executes a function while holding a shared (read) lock for the specified lock type. Multiple readers can hold the lock simultaneously, but w
repository/flock.go:84
Method
WriteSourceFile
--- Direct manipulation methods for edge case testing --- WriteSourceFile writes directly to the source repository
environment/integration/helpers.go:294
Method
description
Return a description of the agent
cmd/container-use/agent/configure_q.go:31
Method
description
Return a description of the agent
cmd/container-use/agent/configure_goose.go:33
Method
description
Return a description of the agent
cmd/container-use/agent/configure_codex.go:32
Method
description
()
cmd/container-use/agent/configure.go:67
Method
description
()
cmd/container-use/agent/configure_claude.go:40
Method
description
Return a description of the agent
cmd/container-use/agent/configure_cursor.go:30
Method
editMcpConfig
Save the MCP config with container-use enabled
cmd/container-use/agent/configure_q.go:36
Method
editMcpConfig
Save the MCP config with container-use enabled
cmd/container-use/agent/configure_goose.go:38
Method
editMcpConfig
Save the MCP config with container-use enabled
cmd/container-use/agent/configure_codex.go:37
Method
editMcpConfig
()
cmd/container-use/agent/configure_claude.go:44
Method
editMcpConfig
Save the MCP config with container-use enabled
cmd/container-use/agent/configure_cursor.go:35
Method
editRules
Save the agent rules with the container-use prompt
cmd/container-use/agent/configure_q.go:87
Method
editRules
Save the agent rules with the container-use prompt
cmd/container-use/agent/configure_goose.go:113
Method
editRules
Save the agent rules with the container-use prompt
cmd/container-use/agent/configure_codex.go:96
Method
editRules
()
cmd/container-use/agent/configure_claude.go:104
Method
editRules
Save the agent rules with the container-use prompt
cmd/container-use/agent/configure_cursor.go:84
Function
execDaggerRun
(daggerBin string, args []string, env []string)
cmd/container-use/terminal_windows.go:11
Function
getNotifySignals
getNotifySignals returns Windows-compatible signals for MCP server
mcpserver/signals_windows.go:11
Function
getNotifySignals
getNotifySignals returns Windows-compatible signals for receiving
cmd/container-use/signals_windows.go:11
Function
init
init sets up logging for tests
environment/integration/helpers.go:25
Function
init
()
cmd/container-use/inspect.go:46
Function
init
()
cmd/container-use/apply.go:63
Function
init
()
cmd/container-use/diff.go:46
Function
init
()
cmd/container-use/completion_override.go:12
Function
init
()
cmd/container-use/delete.go:80
Function
init
()
cmd/container-use/watch_windows.go:152
← previous
next →
201–300 of 323, ranked by callers