Skip to content

Commit

Permalink
change no-cache to cache and also extract
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Jan 27, 2025
1 parent 72354ab commit 5c1ba20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kscale/web/cli/robot_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ async def upload(class_name: str, urdf_file: str) -> None:

@urdf.command()
@click.argument("class_name")
@click.option("--no-cache", is_flag=True, default=False)
@click.option("--cache", is_flag=True, default=False)
@coro
async def download(class_name: str, no_cache: bool) -> None:
async def download(class_name: str, cache: bool) -> None:
"""Downloads a URDF file from a robot class."""
async with RobotClassClient() as client:
urdf_file = await client.download_compressed_urdf(class_name, cache=not no_cache)
urdf_file = await client.download_and_extract_urdf(class_name, cache=cache)
click.echo(f"URDF downloaded: {click.style(urdf_file, fg='green')}")


Expand Down

0 comments on commit 5c1ba20

Please sign in to comment.