Skip to content

Feat/shell command#12

Open
basile-simvia wants to merge 3 commits intomainfrom
feat/shell-command
Open

Feat/shell command#12
basile-simvia wants to merge 3 commits intomainfrom
feat/shell-command

Conversation

@basile-simvia
Copy link
Copy Markdown
Collaborator

Summary

Introduce DockerMode enum in docker.rs to distinguish between running run_aster and starting an interactive shell
Refactor docker_aster to accept a DockerMode parameter instead of separate export_file/args parameters
Add shell_aster function in manage.rs that launches an interactive bash shell inside the container
Add cave shell CLI subcommand wired to shell_aster

Motivation

Previously docker_aster always built and executed a run_aster command, making it impossible to reuse for interactive shell sessions. This refactor cleanly separates the two use cases while keeping all Docker container setup (volume mount, user permissions, image selection) in a single function.

Test plan

  • cave run -- my_study.export still executes correctly and telemetry is sent
  • cave shell drops into an interactive bash shell inside the container-
  • cave shell with no version set in .cave returns a VersionNotInstalled error
  • cave shell with a version not pulled locally returns a VersionNotInstalled error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants