blob: 4ca568db1a2cc2f27caccc780a8f7a0bfe56954d [file] [log] [blame]
# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import annotations
import abc
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from crossbench.plt.base import CmdArg, ListCmdArgs
class SshPlatformMixin(abc.ABC):
@property
def is_remote_ssh(self) -> bool:
return True
@abc.abstractmethod
def _build_ssh_cmd(self, *args: CmdArg, shell=False) -> ListCmdArgs:
pass