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 the current platform name for logging/debugging.
Get the current platform name for logging/debugging.