Methods
(static) make-readme()
- Description:
Command line builder of the README.md file from the package.json file for aidebuild
Usage: ./src/make-readme.js
(static) menu()
- Description:
Generates a simple graphical user interface menu for the commands.
Usage: .../aidebuild/src/menu.js [menu.json] &- It requires a
menu.jsonfile defining the shell commands to be run, e.g. :
{ " rebuild": "@term make rebuild what=ongoing", " clean": "@term make clean", "console": "mate-terminal", "suspend": "sudo systemctl suspend" }-
Usage notes:
- Commands
stdoutandstderrare appended to the localmenu.logfile. - With the
@termprefix the command is run in axtermterminal. - By default, (i) the local
./menu.jsonor (ii) themenu.jsdirectorymenu.jsonfile is considered. - The menu title is built from the
menu.jsonbase-name (without the.jsonextension).
- Commands
-
Implementation notes:
- It uses the cligui2 middle-ware.
- It thus requires a manual call of
sudo npm install -g cligui2on install. - It then may requires
export NODE_PATH=$(npm root --quiet -g)before calling./menu.js - If the
xtermsoftware is present it is used to show the menu in a popup window. - This may be introduced in a
makefileof the form:
- It thus requires a manual call of
- It uses the cligui2 middle-ware.
menu: export NODE_PATH=$(shell npm root --quiet -g) ; ./menu.js install: sudo apt install nodejs npm xterm sudo npm install -g menu ../..- The menu is in a terminal yielding a menu of the form:

- It does not require any specific GUI and it is usable on any platform.
- It requires a