blob: 20678520cc0d14cd36310ef2d36a52fd0a1fbc56 [file]
# Copyright 2026 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from typing import Any
from cli.commands.base import BaseCommand
from shared.protocol.wait_for_event import COMMAND_NAME
class Command(BaseCommand):
COMMAND_NAME = COMMAND_NAME
ALIASES = ["wait_for_event", "waitForEvent"]
@staticmethod
def register_cli(subparsers: Any) -> None:
wait_parser = subparsers.add_parser(
Command.COMMAND_NAME,
aliases=Command.ALIASES,
help="Wait for event (default shows all events)",
)
wait_parser.add_argument(
"--last-seen-seq",
type=int,
default=0,
help="Last seen sequence number",
)
wait_parser.add_argument(
"--timeout",
type=int,
default=10,
help="Timeout in seconds (default=10 seconds)",
)