refactor(engine): flatten

- add `just stats`
- add basic doctests
This commit is contained in:
stop screaming 2026-02-21 00:03:04 +02:00
parent 7afab8eade
commit 37068784cb
34 changed files with 1285 additions and 1173 deletions

View file

@ -115,3 +115,43 @@ sampler:
{{debug}} sampler
plugin:
{{debug}} plugin
@stats:
echo
for file in $(ls app/*.rs); do echo $file; cloc $file | grep Rust; done
echo
cloc app | grep Rust
rg 'pub struct ' app/ | cat
rg 'pub struct ' app/ | wc -l
rg 'pub trait ' app/ | cat
rg 'pub trait ' app/ | wc -l
echo
rg 'TODO' app/ | cat
rg 'TODO' app/ | wc -l
echo
for file in $(ls engine/*.rs); do echo $file; cloc $file | grep Rust; done
echo
cloc engine | grep Rust
rg 'pub struct ' engine/ | cat
rg 'pub struct ' engine/ | wc -l
rg 'pub trait ' engine/ | cat
rg 'pub trait ' engine/ | wc -l
echo
rg 'TODO' engine/ | cat
rg 'TODO' engine/ | wc -l
echo
for file in $(ls device/*.rs); do echo $file; cloc $file | grep Rust; done
echo
cloc device | grep Rust
rg 'pub struct ' device/ | cat
rg 'pub struct ' device/ | wc -l
rg 'pub trait ' device/ | cat
rg 'pub trait ' device/ | wc -l
echo
rg 'TODO' device/ | cat
rg 'TODO' device/ | wc -l
echo