Skip to content

Commit

Permalink
[rtwcli] Add workspace delete functionality (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
muritane authored Jul 1, 2024
1 parent 009bfa5 commit 85248b8
Show file tree
Hide file tree
Showing 13 changed files with 862 additions and 248 deletions.
2 changes: 1 addition & 1 deletion rtwcli/rtw_cmds/rtw_cmds/docker/verbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
is_docker_container_running,
)
from rtwcli.verb import VerbExtension
from rtwcli.workspace_manger import get_current_workspace
from rtwcli.workspace_utils import get_current_workspace


class EnterVerb(VerbExtension):
Expand Down
10 changes: 5 additions & 5 deletions rtwcli/rtw_cmds/rtw_cmds/workspace/create_verb.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
)
from rtwcli.verb import VerbExtension
import docker
from rtwcli.workspace_manger import (
from rtwcli.workspace_utils import (
Workspace,
WorkspacesConfig,
get_compile_cmd,
Expand All @@ -64,7 +64,7 @@
DEFAULT_FINAL_IMAGE_NAME_FORMAT = "rtw_{workspace_name}_final"
DEFAULT_CONTAINER_NAME_FORMAT = "{final_image_name}-instance"
DEFAULT_HOSTNAME_FORMAT = "rtw-{workspace_name}-docker"
DEFAULT_RTW_DOCKER_BRANCH = "rtw_ws_create"
DEFAULT_RTW_DOCKER_BRANCH = "master"
DEFAULT_RTW_DOCKER_PATH = os.path.expanduser("~/ros_team_workspace")
DEFAULT_UPSTREAM_WS_NAME_FORMAT = "{workspace_name}_upstream"
DEFAULT_WS_REPOS_FILE_FORMAT = "{repo_name}.{ros_distro}.repos"
Expand Down Expand Up @@ -936,9 +936,9 @@ def main(self, *, args):
ws_name=create_args.upstream_ws_name,
ws_folder=create_args.upstream_ws_abs_path,
distro=create_args.ros_distro,
ws_docker_support=True if create_args.docker else False,
docker_tag=create_args.final_image_name if create_args.docker else "",
docker_container_name=create_args.container_name if create_args.docker else "",
ws_docker_support=create_args.docker,
docker_tag=create_args.final_image_name if create_args.docker else None,
docker_container_name=create_args.container_name if create_args.docker else None,
standalone=create_args.standalone,
)
if not update_workspaces_config(WORKSPACES_PATH, local_upstream_ws):
Expand Down
Loading

0 comments on commit 85248b8

Please sign in to comment.