Skip to content
Pranav Baburaj edited this page Jun 24, 2021 · 1 revision

CLI

The polyglot module comes along with a command-line application. The cli can be accessed using polyglot or pgt

Stats

polyglot stats

Parameters

  • --dir:The directory to check the stats
    • Default: Current directory
  • --ignore: Files to ignore
    • Default: By default, the cli searches for files with a .polyglotextension
  • --detect: The language detection file
  • --fmt: l for comparison based on loc, f for files.
  • --output: Store the stats output into a file. Only JSON files and toml files are allowed.
polyglot stats --dir=/home/Documents --ignore --fmt=l --output=output.toml

Tree

polyglot tree

Parameters

  • --dir: The directory. Set to the current directory by default.

dir or ls

polyglot ls
polyglot dir

up

Update your cli

polyglot up

This wiki is the same as the documentation 😄.

Clone this wiki locally