Rob Landley cd4c2da20a Update man page URL in hello/skeleton examples, and fix hello to 2 years ago
..
README a59792c73c Update docs. 2 years ago
demo_many_options.c 9448f8e57e Finish renameing test_* to demo_* in example directories and tweak README. 6 years ago
demo_number.c ec5e6e12ee Add commas to top display, and adjust memory units to megabytes if >10G RAM. 3 years ago
demo_scankey.c c3f3f842c5 Replace \033 with \e in strings. 2 years ago
demo_utf8towc.c d3025b14b9 Convert utf8towc from wchar_t to unsigned (to match wctoutf8). 3 years ago
hello.c cd4c2da20a Update man page URL in hello/skeleton examples, and fix hello to 2 years ago
hostid.c e913247fec Rename test_*.c to demo_*.c (because "make test_$CMD" means something already), 6 years ago
logpath.c 9fb4ebd690 Update script/record-commands and rename logwrapper->logpath. 2 years ago
skeleton.c cd4c2da20a Update man page URL in hello/skeleton examples, and fix hello to 2 years ago

README

Example commands

You probably don't want to deploy any of this.

The hello.c and skeleton.c commands provide templates for new commands. When
writing a new command, copying hello.c or skeleton.c to the new name may provide
a good starting point. (The minimal staring point is toys/posix/false.c)

- hello.c is clean and simple, and an easy way to check the behavior of
toybox library functions running in command context.

- skeleton.c demonstrates the option parsing infrastructure and having
multiple commands per file.

Some of the commands in here are test infrastructure:

- logpath.c is optionally used by mkroot.sh and scripts/record-commands

- demo_* demonstrates infrastructure, allowing tests/demo_*.test to
regression test library functions directly.

hostid.c is an obsolete command still in posix and present on some recent
Linux systems, but not really useful on modern systems.