Adding handoff to Victor Viral

This commit is contained in:
2026-03-13 12:01:59 +01:00
parent 3dcd7961c6
commit b21ca6b394
4 changed files with 50 additions and 30 deletions
+8 -3
View File
@@ -156,6 +156,11 @@ Examples:
default=None,
help="For handoff: path to video file (overrides output_video in project.json)",
)
parser.add_argument(
"--prod",
action="store_true",
help="Target production server (GNOMMOWEB_PROD_URL / GNOMMOWEB_PROD_API_KEY)",
)
args = parser.parse_args()
@@ -218,13 +223,13 @@ Examples:
return cmd_master(project_path, args.verbose, args.channel)
elif action == "push":
from .push import cmd_push
return cmd_push(project_path, args.verbose, args.force)
return cmd_push(project_path, args.verbose, args.force, args.prod)
elif action == "pull":
from .pull import cmd_pull
return cmd_pull(project_path, args.verbose, args.force)
return cmd_pull(project_path, args.verbose, args.force, args.prod)
elif action == "handoff":
from .handoff import cmd_handoff
return cmd_handoff(project_path, args.verbose, args.file)
return cmd_handoff(project_path, args.verbose, args.file, args.prod)
except GnommoError as e:
print(f"Error: {e}", file=sys.stderr)