aboutsummaryrefslogtreecommitdiff
path: root/toys/example/README
blob: a3af851926ac9170f4edbacc0b41fd9d55d7a6f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Example commands

You probably don't want to deploy this, but it shows how to use the
toybox infrastructure and provides templates for new commands.

The hello.c and skeleton.c commands provide templates: hello.c is clean and
simple, skeleton.c demonstrates the option parsing infrastructure and having
multiple commands per file. When writing a new command, copying hello.c or
skeleton.c to the new name may provide a good starting point.

The demo_* commands demonstrate infrastructure.

Other commands in here are obsolete versions still in some recent Linux systems
(and often still in posix), but not really useful on modern systems.