1
0
Fork
You've already forked please_code_count
0
  • v0.2.0 22a2fc5f20

    v0.2.0 Stable

    bool_purist released this 2025年12月18日 13:08:45 +01:00 | 7 commits to main since this release

    Packages for Linux distributions

    Changelog of the release

    v0.2.0 - 2025年11月12日

    Fixed

    • Now only 3 digits, for decimal bytes, after the integer part are rendered.
    • By default the languages are sorted by the byte count itself and not the byte percent which was zero/the same for smaller sizes in larger project
    • If there is no unknown file found then the unknown row is not shown in the ASCII tables anymore.

    Added

    • New CLI option as --csv-delimiter as to adjust which text is used for separating fields
      in the output format -f|--format-output as csv comma separating value.
    • New column called color under the options -d|--display-columns and -o|--ordering-columns show the hex color of language.
    • New option to change output format -f|--format-output for showing 'json',json-pretty as pretty json
      and comma separated value as cvs beside a human readable as table.
    • Listed languages can now be shown with a certain color via option --color-mode and environmental variable PLEASE_CODE_COUNT_COLUMNS_SORT.
      There are 3 modes "full", "basic" and "none". "full" works on a terminal emulator with true color support.
      "basic" is a fallback for partial color support, fewer colors, leading to languages sharing the same color.
      Default is "full". "None" recommended for scripting and CI.
      The application fallbacks from "full" to "basic" or from "basic" to "none" If the terminal lacks the support for the original color mode.
      This color comes with most built in languages or from the user defined color.
      User defined color can be provided as Hex color, "#XXXXXX" or as rgb color, [XXX, XXX, XXX] under the new field color.
    • You can now set which column is shown via the option -o|--ordering-columns and environmental variable PLEASE_CODE_COUNT_COLUMNS_DISPLAY.
      Detects error where If a columns is not displayed but it is sorted.
    • You can now choose which columns are used for sorting via the option -o|--ordering-columns and environmental variable PLEASE_CODE_COUNT_COLUMNS_SORT.
    • You can now set if the sorting is ascending or descending via option -a|--ascending-sorting.
      It is by default descending.
    • Duplicated column names for sorting, -o|--ordering-columns, and for what to show, -d|--display-columns, are detected and reported as an error.
    • User does not need to provide a path to directory anymore. The current directory is used as fallback then.
    • Application also available for the target arm 64, arm 32 v7 and risc-v 64 bit.
    • A Debian package can be build which will deploy the binary, README, changelog, licence, shell completions and the man page.
    • A RPM package can be build which will deploy the binary, README, changelog, licence, shell completions and the man page.
    • Man page can be generated by separate binary crate called "man"
    • Shell completion can be generated by separate binary crate called "shell_completion"
    • Added command for compiling the application with its intended assets and documented how to do it.
      This also serves as foundation for potential packing for Linux distros

    Changed

    • Made columns name shorter so the ASCII table fits better within terminal sessions.
    • Changed package name from 'please_code_count' to 'please-code-count' since application on linux distribution usually use '-' to separate words
      Using '_' for separating words also resulted in a bug for rpm package in which the bash completion was not sourced.

    Removed

    • Removed subcommand "manpage" since the manpage is shipped in a release
    • Removed subcommand "shell_completion" since the manpage is shipped in a release
    Downloads