Skip to content

Commit 2e350b8

Browse files
guptadev21ankitrgadiya
authored andcommitted
feat: old bg replaced by async and new fucntionality
1 parent f133ca1 commit 2e350b8

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies = [
4747
"python-magic-bin>=0.4.14; os_name == 'nt'",
4848
"pytz",
4949
"pyyaml>=5.4.1",
50-
"rapyuta_io>=2.3.1",
50+
"rapyuta-io @ git+https://github.com/rapyuta-robotics/rapyuta-io-sdk@5fb64de1603fa7d1c6e224dfd4ee0a0dbd2a5cfc",
5151
"requests>=2.20.0",
5252
"semver>=3.0.0",
5353
"setuptools",

riocli/device/execute.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
default=False,
3838
help="Run the command asynchronously.",
3939
)
40+
@click.option(
41+
"--bg",
42+
"bg",
43+
default=False,
44+
is_flag=True,
45+
help="Run command in background.",
46+
hidden=True,
47+
)
4048
@click.argument("device-name-or-regex", type=str)
4149
@click.argument("command", nargs=-1)
4250
def execute_command(
@@ -45,6 +53,7 @@ def execute_command(
4553
timeout: int,
4654
shell: str,
4755
run_async: bool,
56+
bg:bool,
4857
command: typing.List[str],
4958
) -> None:
5059
"""Execute commands on one or more devices.
@@ -96,7 +105,7 @@ def execute_command(
96105
try:
97106
result = client.execute_command(
98107
device_ids=device_guids,
99-
command=Command(cmd, shell=shell, bg=run_async, runas=user, timeout=timeout),
108+
command=Command(cmd, shell=shell, bg=bg, run_async=run_async, runas=user, timeout=timeout),
100109
timeout=timeout,
101110
)
102111
for device_guid in result:

uv.lock

Lines changed: 3 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)