PlatformCommands
Cross-platform command utilities for testing speech adapters. Automatically detects OS and provides appropriate safe commands.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PlatformCommands.type
Members list
Value members
Concrete methods
Get a safe file content command for the current platform. Windows: cmd /c type POSIX: cat
Get a safe file content command for the current platform. Windows: cmd /c type POSIX: cat
Attributes
Get a safe echo command for the current platform. Windows: cmd /c echo POSIX: echo
Get a safe echo command for the current platform. Windows: cmd /c echo POSIX: echo
Attributes
Check if a command is available on the current platform.
Check if a command is available on the current platform.
Attributes
Get a safe directory listing command for the current platform. Windows: cmd /c dir POSIX: ls
Get a safe directory listing command for the current platform. Windows: cmd /c dir POSIX: ls
Attributes
Get a command that reads a file and outputs its content for testing. This is useful for simulating Whisper output.
Get a command that reads a file and outputs its content for testing. This is useful for simulating Whisper output.
Attributes
Get a command that always succeeds for testing purposes. This is useful when you need a mock command that doesn't fail.
Get a command that always succeeds for testing purposes. This is useful when you need a mock command that doesn't fail.
Attributes
Get a command that writes a minimal valid WAV file to the path given by the --out argument. Uses the first available Python interpreter (python3, python, or py). Returns a command using that interpreter, or falls back to python3 if none detected (in which case tests guarded by pythonInterpreter.isDefined will be skipped first).
Get a command that writes a minimal valid WAV file to the path given by the --out argument. Uses the first available Python interpreter (python3, python, or py). Returns a command using that interpreter, or falls back to python3 if none detected (in which case tests guarded by pythonInterpreter.isDefined will be skipped first).
Attributes
Get the current platform name for logging/debugging.
Get the current platform name for logging/debugging.
Attributes
Returns the name of the first available Python interpreter on this machine (tries python3, python, then py), or None if none can be found.
Returns the name of the first available Python interpreter on this machine (tries python3, python, then py), or None if none can be found.