xref: /third_party/toybox/toys/example/README (revision 0f66f451)
10f66f451Sopenharmony_ciExample commands
20f66f451Sopenharmony_ci
30f66f451Sopenharmony_ciYou probably don't want to deploy any of this.
40f66f451Sopenharmony_ci
50f66f451Sopenharmony_ciThe hello.c and skeleton.c commands provide templates for new commands:
60f66f451Sopenharmony_cihello.c is clean and simple, skeleton.c demonstrates the option parsing
70f66f451Sopenharmony_ciinfrastructure and having multiple commands per file. When writing a new
80f66f451Sopenharmony_cicommand, copying hello.c or skeleton.c to the new name may provide a good
90f66f451Sopenharmony_cistarting point. (The minimal staring point is toys/posix/false.c)
100f66f451Sopenharmony_ci
110f66f451Sopenharmony_ciThe demo_* commands demonstrate infrastructure, and do regression testing.
120f66f451Sopenharmony_ci
130f66f451Sopenharmony_ciOther commands in here are obsolete versions still in some recent Linux systems
140f66f451Sopenharmony_ci(and often still in posix), but not really useful on modern systems.
15