API Reference¶
This section provides detailed documentation for the RunLy Python API.
Core Classes¶
Command¶
CommandSet¶
- class runly.CommandSet(commands: ~typing.List[~runly.commands.Command], variables: ~typing.Dict[str, str] = <factory>, default_command: str | None = None)[source]¶
Bases:
objectA set of commands parsed from a justfile.
JustfileParser¶
CommandRunner¶
- class runly.CommandRunner(command_set: CommandSet, dry_run: bool = False, quiet: bool = False, verbose: bool = False)[source]¶
Bases:
objectRuns commands from a CommandSet.
Exceptions¶
Base Exceptions¶
- class runly.RunLyError(message: str, details: str | None = None)[source]¶
Bases:
ExceptionBase exception for all RunLy errors.
- class runly.JustfileError(message: str, filepath: str | None = None, line_number: int | None = None, details: str | None = None)[source]¶
Bases:
RunLyErrorBase exception for justfile-related errors.
Specific Exceptions¶
- class runly.CommandNotFoundError(message: str, command_name: str | None = None, details: str | None = None)[source]¶
Bases:
CommandErrorException raised when a command is not found.
Utility Functions¶
Utility functions for RunLy.
CLI Module¶
Command-line interface for RunLy.
- runly.cli.find_justfile() Path | None[source]¶
Find the justfile in the current directory or parent directories.
- runly.cli.display_commands_table(command_set) None[source]¶
Display available commands in a formatted table.