cli library

Common CLI arguments, formatting, and GitHub Actions utilities.

Classes

ExitCode
Exit code constants.

Extensions

AnalyticaArgParserExtensions on ArgParser
Standard CLI argument parsing options and helpers across Analytica tools.

Functions

appendGitHubStepSummary(String markdown, {File? summaryFile, StringSink? errSink}) → void
Appends markdown content to the GitHub Actions step summary file.
emitGitHubError(String message, {String? file, int? line, int? endLine, int? col, int? endColumn, String? title, StringSink? sink}) → void
Emits a GitHub Actions workflow error annotation.
emitGitHubNotice(String message, {String? file, int? line, int? endLine, int? col, int? endColumn, String? title, StringSink? sink}) → void
Emits a GitHub Actions workflow notice annotation.
emitGitHubWarning(String message, {String? file, int? line, int? endLine, int? col, int? endColumn, String? title, StringSink? sink}) → void
Emits a GitHub Actions workflow warning annotation.
parseCommaSeparated(String? value) List<String>
Parses a comma-separated string into a trimmed, non-empty list of items.
parseLineBounds(String lines) → (int, int)
Parses a 1-based line range of format <start>-<end> (e.g. 45-80).
parseNonNegativeInt(String val, String name) int
Parses a non-negative integer or throws a FormatException.
resolveGitHubSummaryFile() File?
Resolves the GitHub Actions Step Summary markdown file from the environment, or null if not running inside GitHub Actions.
resolveTargetFileAndLines(String rawTarget, {String? explicitLines}) → ({String filePath, String? linesString})
Resolves a file target and optional line specifier from command arguments.