ls

built-in
-10.4% Savings
194 Commands
-2226 Tokens saved
2 Tests

Install

tokf install 64d904bc627e67c96ad2f8b2356aba31396d3640921d33ba79ea1b09432a425b
Safety checks passed

Filter definition

command = "ls"

[on_success]
head = 50

[on_failure]
tail = 5

Examples

failed ls shows error message ~14 tokens → ~14 tokens
Raw output
ls: cannot access '/no/such/dir': No such file or directory
Filtered output
ls: cannot access '/no/such/dir': No such file or directory
ls output passes through unchanged ~5 tokens → ~5 tokens
Raw output
Cargo.toml
src
tests
Filtered output
Cargo.toml
src
tests
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters