forked from TrueCloudLab/frostfs-testlib
16 lines
501 B
Python
16 lines
501 B
Python
from neofs_testlib.cli.cli_command import CliCommand
|
|
from neofs_testlib.cli.neogo.network_type import NetworkType
|
|
from neofs_testlib.shell import CommandResult
|
|
|
|
|
|
class NeoGoNode(CliCommand):
|
|
def start(self, network: NetworkType = NetworkType.PRIVATE) -> CommandResult:
|
|
"""Start a NEO node.
|
|
|
|
Args:
|
|
network: Select network type (default: private).
|
|
|
|
Returns:
|
|
Command's result.
|
|
"""
|
|
return self._execute("start", **{network.value: True})
|