All apps/Tokei

Tokei

tokei

Tokei is a program that displays statistics about your code.

Runs as tokei|macOS, Linux, Windows|github.com

Command form

ai-draft · 3 tasks · 10 fields

Count code, comments and blanks in one or more paths. Only flags in the Fig spec are offered.

Opens the form; the finished command lands at your prompt, unrun
otty gui tokei
Count lines of codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Paths
any
TasksEach one presets the form for one job
Count a project
paths
Per-file, sorted by code
pathsfilessort
JSON report
pathsoutput
ParametersOnly these flags are editable in the form
Paths
path · positional 0 · repeatable
Per-file statistics
boolean
-f--files
Exclude patterns
string · repeatable
-e--exclude
Output format
enum
-o--outputcborjsonyaml
Sort by
enum
-s--sortfileslinesblankscodecomments
Language types (comma separated)
string
-t--type
Count hidden files
boolean
--hidden
Ignore .gitignore rules
boolean
--no-ignore
Column width
integer
-c--columns
Verbosity
count
-v--verbose
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed tokei against its version. A form that does not match your version is not offered.