blob: c0537b92fd5afff8e9c1c3f05cf1a3507daeed62 [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.
import argparse
from typing import Any, ClassVar
class BaseCommand:
COMMAND_NAME: ClassVar[str] = ""
ALIASES: ClassVar[list[str]] = []
@staticmethod
def register_cli(subparsers: Any) -> None:
raise NotImplementedError()
@staticmethod
async def execute(args: argparse.Namespace) -> int | None:
# Default fallback: return None to indicate no custom execution logic.
return None