adds usage: scratchpad {ls|clear|help|make|write|size|find|lock|unlock} [ARGS]
authorThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Wed, 29 Oct 2025 09:04:53 +0000 (09:04 +0000)
committerThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Wed, 29 Oct 2025 09:04:53 +0000 (09:04 +0000)
commitafbf5eff61bad0fb4cc2f6c8aa51753814f2327c
tree6176613cdb50790d3fec2d530266730aa80c3bcb
parentcebe589e9344d3ca5df9e4fdc3e310ecda63e75f
adds usage: scratchpad {ls|clear|help|make|write|size|find|lock|unlock} [ARGS]
  ls               List scratchpad in an indented tree with perms and owner (quiet if missing).
  clear            Remove all contents of scratchpad/ except top-level .gitignore.
  clear NAME       Remove scratchpad/NAME only.
  make [NAME]      Ensure scratchpad/ exists with .gitignore; with NAME, mkdir scratchpad/NAME.
  write SRC [DST]  Copy file/dir SRC into scratchpad (to DST if given; parents created).
  size             Print 'empty' if only .gitignore; else total bytes and item count.
  find [OPTS...]   Run system 'find' rooted at scratchpad/ with OPTS (omit literal 'scratchpad').
  lock PATH...     Attempt 'chattr +i' on given paths under scratchpad/ (no state kept).
  unlock PATH...   Attempt 'chattr -i' on given paths under scratchpad/.

Examples:
  scratchpad make
  scratchpad write ~/Downloads/test.tar.gz
  scratchpad find -type f -mtime +30 -print   # files older than 30 days
  scratchpad lock some/dir important.txt
  scratchpad unlock some/dir important.txt command
developer/cc/Rabbit_2017_to_WG.kmod.c
developer/tool/release
release/kmod/Rabbit_2017_count.ko
release/kmod/Rabbit_2017_to_WG.ko [new file with mode: 0644]
release/kmod/Rabbit_no-op.ko
tool_shared/bespoke/env
tool_shared/bespoke/scratchpad [new file with mode: 0755]
tool_shared/bespoke/version