Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix program indications for list/persist/unpersist commands #328

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/aleph_client/commands/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async def list_programs(
"HyperV: [magenta3]Firecracker[/magenta3]\n",
f"Timeout: [orange3]{message.content.resources.seconds}s[/orange3]\n",
f"Persistent: {'[green]Yes[/green]' if message.content.on.persistent else '[red]No[/red]'}\n",
f"Updatable: {'[green]Yes[/green]' if message.content.allow_amend else '[red]No[/red]'}",
f"Updatable: {'[green]Yes[/green]' if message.content.allow_amend else '[orange3]Code only[/orange3]'}",
]
specifications = Text.from_markup("".join(specs))
volumes = ""
Expand Down Expand Up @@ -511,7 +511,7 @@ async def persist(
verbose: bool = True,
debug: bool = False,
) -> Optional[str]:
"""Recreate a non-persistent program as persistent (item hash will change)"""
"""Recreate a non-persistent program as persistent (item hash will change). The program must be updatable and yours"""

setup_logging(debug)

Expand Down Expand Up @@ -603,7 +603,7 @@ async def unpersist(
verbose: bool = True,
debug: bool = False,
) -> Optional[str]:
"""Recreate a persistent program as non-persistent (item hash will change)"""
"""Recreate a persistent program as non-persistent (item hash will change). The program must be updatable and yours"""

setup_logging(debug)

Expand Down
Loading