update
This commit is contained in:
@@ -35,10 +35,10 @@ def print_help():
|
||||
console.print("[bold cyan]COMMANDS:[/bold cyan]")
|
||||
console.print()
|
||||
console.print(" [green]create[/green] Create a new branch from template")
|
||||
console.print(" [dim]update <@branch|--all>[/dim] Update branch(es) from template [dim][not yet implemented][/dim]")
|
||||
console.print(" [dim]delete <@branch>[/dim] Archive and deregister branch [dim][not yet implemented][/dim]")
|
||||
console.print(" [dim]sync-registry[/dim] Repair registry against filesystem [dim][not yet implemented][/dim]")
|
||||
console.print(" [dim]sync-templates[/dim] Pull managed files from source [dim][not yet implemented][/dim]")
|
||||
console.print(" [green]update[/green] <@branch|--all> Update branch(es) from template")
|
||||
console.print(" [green]delete[/green] <@branch> Archive and deregister branch")
|
||||
console.print(" [green]sync-registry[/green] Repair registry against filesystem")
|
||||
console.print(" [green]sync-templates[/green] Pull managed files from source")
|
||||
console.print(" [dim]regenerate-registry[/dim] Regenerate template registry hashes [dim][not yet implemented][/dim]")
|
||||
console.print()
|
||||
console.print("[bold cyan]OPTIONS:[/bold cyan]")
|
||||
@@ -112,12 +112,24 @@ def main():
|
||||
if command == "create":
|
||||
return handle_create(remaining)
|
||||
|
||||
if command == "update":
|
||||
from aipass.spawn.apps.modules.update import handle_update
|
||||
return handle_update(remaining)
|
||||
|
||||
if command == "delete":
|
||||
from aipass.spawn.apps.modules.delete import handle_delete
|
||||
return handle_delete(remaining)
|
||||
|
||||
if command == "sync-registry":
|
||||
from aipass.spawn.apps.modules.sync_registry import handle_sync_registry
|
||||
return handle_sync_registry(remaining)
|
||||
|
||||
if command == "sync-templates":
|
||||
from aipass.spawn.apps.modules.sync_templates import handle_sync_templates
|
||||
return handle_sync_templates(remaining)
|
||||
|
||||
# Stub commands — planned but not yet implemented
|
||||
stub_commands = {
|
||||
"update": "Update branch(es) from template",
|
||||
"delete": "Archive and deregister branch",
|
||||
"sync-registry": "Repair registry against filesystem",
|
||||
"sync-templates": "Pull managed files from source branches",
|
||||
"regenerate-registry": "Regenerate template registry hashes",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user