.. index:: menutree (command)

.. _command_menutree:

menutree (create menu from directory structure)
===============================================

Usage
^^^^^
``menutree [-m] DIR``

Synopsis
^^^^^^^^
Each menu entry is described by a subdirectory. Each subdirectory
can contain the following files which further describe the entry:

title  A file containing the title of the entry as shown in the menu
box    If present, the entry is a 'bool' entry. The file contains a
name from which the current state of the bool is taken from and saved
to.
action if present this file contains a shell script which is executed when
when the entry is selected.

If neither 'box' or 'action' are present, this entry is considered a submenu
containing more entries.

Options
^^^^^^^
-m DIR
 directory where the menu starts (Default: /env/menu)

.. generated from: /ptx/work/dude/WORK_A/sha/backup/barebox/website_barebox_org/barebox/commands/menutree.c
.. command function: do_menutree