toybox/toys/example/README
<<
>>
Prefs
   1Example commands
   2
   3You probably don't want to deploy any of this.
   4
   5The hello.c and skeleton.c commands provide templates for new commands. When
   6writing a new command, copying hello.c or skeleton.c to the new name may provide
   7a good starting point. (The minimal staring point is toys/posix/false.c)
   8
   9  - hello.c is clean and simple, and an easy way to check the behavior of
  10    toybox library functions running in command context.
  11
  12  - skeleton.c demonstrates the option parsing infrastructure and having
  13    multiple commands per file.
  14
  15Some of the commands in here are test infrastructure:
  16
  17  - logpath.c is optionally used by mkroot.sh and scripts/record-commands
  18
  19  - demo_* demonstrates infrastructure, allowing tests/demo_*.test to
  20    regression test library functions directly.
  21
  22hostid.c is an obsolete command still in posix and present on some recent
  23Linux systems, but not really useful on modern systems.
  24