aicongli-829/tokei/output does not have a README file

    Format

    pub(all) enum Format {
    Table
    Json
    Csv
    Yaml
    }

    Supported output formats.

    render_csv

    fn render_csv(r :
    Report
    ) -> String

    CSV output: Language,Files,Lines,Code,Comments,Blanks

    render_files

    fn render_files(r :
    Report
    , files : Array[(String, String,
    Counts
    )]) -> String

    Per-file statistics grouped under their language totals (--files mode).

    render_files_with_options

    fn render_files_with_options(r :
    Report
    , files : Array[(String, String,
    Counts
    )], columns : Int, num_format : String, compact : Bool) -> String

    render_json

    fn render_json(r :
    Report
    , files : Array[(String, String,
    Counts
    )]) -> String

    JSON follows Tokei's serialized Language / Report / CodeStats model. Derived file and line totals belong in the table, not in this format.

    render_table

    fn render_table(r :
    Report
    ) -> String

    Render the tokei-style table:

    Language Files Lines Code Comments Blanks

    C++ 5 2250 1650 300 300

    Total 5 2250 1650 300 300

    render_table_with_files

    fn render_table_with_files(r :
    Report
    , files : Array[(String, String,
    Counts
    )], columns : Int, num_format : String, compact : Bool) -> String

    Show child-language counts beneath each container language, as Tokei does.

    render_table_with_options

    fn render_table_with_options(r :
    Report
    , columns : Int, num_format : String) -> String

    Match upstream's 79-column minimum; wider tables expand the language cell.

    render_yaml

    fn render_yaml(r :
    Report
    , files : Array[(String, String,
    Counts
    )]) -> String

    YAML uses the same language/report/stat fields as JSON.

    Source Files