blob: 3c01d64875b7aec82e154d43207f07d6fa9ae004 [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] = ""
@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