Skip to content

Commit 8c8e4ea

Browse files
StarrryNightAndrewyxpre-commit-ci-lite[bot]
authored
Add interactive CLI and refactor tbots.py (#3657)
* enable simulated dribbled * add tbots.py changes * add cli params changes * add module requirements * fix comments and use checkboxes for thunderscope options * add enable realism option and fix autoref checkbox * directly launch command from bazel, skipping typer * change naming of opts to config * add record stats and enable_autogc support * fix typo * [pre-commit.ci lite] apply automatic fixes * fix appending logix * fix record stats * another fix * Add option to run test multiple times * [pre-commit.ci lite] apply automatic fixes * fix time bug * fix nits * Remove enable_visualizer from config and runtime args Removed enable_visualizer option from configuration and runtime arguments. --------- Co-authored-by: Andrew Mao <andrewyxmao@gmail.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 4cfd194 commit 8c8e4ea

4 files changed

Lines changed: 306 additions & 159 deletions

File tree

environment_setup/macos_requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ pyqt-toast-notification==1.3.2
1010
grpcio-tools==1.71.0
1111
platformio==6.1.18
1212
pyqt6==6.9.1
13+
questionary==2.1.1
14+

environment_setup/ubuntu24_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ pyqt-toast-notification==1.3.2
1010
md-toc==9.0.0
1111
grpcio-tools==1.71.0
1212
typer==0.21.0
13+
questionary==2.1.1

src/cli/cli_params.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from typer import Option, Argument
21
from enum import Enum
32
from typing import Annotated
43

4+
from typer import Argument, Option
5+
56
from cli.multi_option import MultiOption
67

78

@@ -89,3 +90,15 @@ class DebugBinary(str, Enum):
8990
StopAIOnStartOption = Annotated[bool, Option("-s", "--stop_ai_on_start")]
9091

9192
JobsOption = Annotated[str, Option("-j", "--jobs")]
93+
RunsOption = Annotated[
94+
int,
95+
Option(
96+
"-r", "--runs", help="Number of times to run each test (bazel --runs_per_test)"
97+
),
98+
]
99+
RobotName = Annotated[
100+
str, Option("-rn", "--robot_name", help="Name of robot. E.g. balle")
101+
]
102+
AnsiblePlaybook = Annotated[
103+
str, Option("-ap", "--ansible_playbook", help="Ansible playbook name")
104+
]

0 commit comments

Comments
 (0)