ls

built-in
-23.9% Savings
1,070 Commands
-22385 Tokens saved
2 Tests

Install

tokf install ba2c0c6794c270ceae634038cd25205275a337befcb8a4e9153a31a5c4276050
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