dtzrttp/moonbit-rtl/src/cli does not have a README file

    AnalysisOutcome

    AnalysisOutcome::has_errors

    fn AnalysisOutcome::has_errors(self : AnalysisOutcome) -> Bool

    AnalysisOutcome::ir

    fn AnalysisOutcome::ir(self : AnalysisOutcome) -> String

    AnalysisOutcome::is_clean

    fn AnalysisOutcome::is_clean(self : AnalysisOutcome) -> Bool

    AnalysisOutcome::markdown

    fn AnalysisOutcome::markdown(self : AnalysisOutcome, title : String) -> String

    AnalysisOutcome::render

    fn AnalysisOutcome::render(self : AnalysisOutcome, format : CliFormat) -> String

    AnalysisOutcome::semantic_summary

    fn AnalysisOutcome::semantic_summary(self : AnalysisOutcome) -> String

    AnalysisOutcome::summary

    fn AnalysisOutcome::summary(self : AnalysisOutcome) -> String

    BatchOutcome

    pub(all) struct BatchOutcome {
    analyses : Array[AnalysisOutcome]
    files : Int
    errors : Int
    warnings : Int
    }

    BatchOutcome::all_diagnostics

    BatchOutcome::has_errors

    fn BatchOutcome::has_errors(self : BatchOutcome) -> Bool

    BatchOutcome::render

    fn BatchOutcome::render(self : BatchOutcome, format : CliFormat) -> String

    BatchOutcome::summary

    fn BatchOutcome::summary(self : BatchOutcome) -> String

    BatchOutcome::total_diagnostics

    fn BatchOutcome::total_diagnostics(self : BatchOutcome) -> Int

    CliCommand

    pub(all) enum CliCommand {
    Check
    Outline
    Graph
    Summary
    Ir
    Tokens
    } derive(Eq,
    Debug
    )

    Commands accepted by the native command line interface.

    CliCommand::checks_source

    fn CliCommand::checks_source(self : CliCommand) -> Bool

    Return whether the command is a source-checking command.

    CliFormat

    pub(all) enum CliFormat {
    Text
    Json
    Sarif
    } derive(Eq,
    Debug
    )

    Output formats exposed by the native command line interface.

    CliFormat::label

    fn CliFormat::label(self : CliFormat) -> String

    Return a stable format label for logs.

    CliOptions

    pub(all) struct CliOptions {
    command : CliCommand
    path : String
    format : CliFormat
    } derive(Eq,
    Debug
    )

    Parsed, validated command line options.

    CliOptions::describe

    fn CliOptions::describe(self : CliOptions) -> String

    Return a compact option description for integration tests.

    analyze_text

    fn analyze_text(file_name : String, text : String, config :
    LintConfig
    ) -> AnalysisOutcome

    options_usage

    fn options_usage() -> String

    Return a stable usage string for help and error output.

    parse_options

    fn parse_options(args : Array[String]) -> CliOptions?

    Parse one command and source path from process arguments.