- Vala 96.4%
- Meson 2.6%
- Shell 0.7%
- CSS 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| data | ||
| resources | ||
| src | ||
| .gitignore | ||
| BUILD.md | ||
| CREDITS.md | ||
| LICENSE | ||
| meson.build | ||
| README.md | ||
| runbook.spec | ||
RunBook
Runbook, a simple GUI script runner.
Runbook is for shipping a GUI full of maintainer scripts without writing a GUI for every script. It is a Vala app using GTK4 and libadwaita.
Config
Runbook looks for its config in this order:
RUNBOOK_CONFIG, It's relative to the current directory unless it starts with/~/.config/runbook/runbook.xml/etc/runbook/runbook.xml$prefix/share/runbook/runbook.xml
Script's are relative to the config file, they have to exist and be executable before runbook will list the page.
<?xml version="1.0" encoding="UTF-8"?>
<runbook>
<category title="System updates">
<description>Keep this machine updated!</description>
<page title="update system" id="update" script="scripts/update.sh" keep-open="true">
<description>Runs the full update and leaves the terminal open.</description>
</page>
</category>
<category title="Utilities">
<description>Small checks and tools.</description>
<page title="check disk" id="disk" script="scripts/disk.sh">
<description>Show the current disk usage.</description>
<argument name="path" title="Path" kind="folder" required="true"/>
<argument name="verbose" title="Verbose output" kind="switch" default="true"/>
<argument name="channel" title="Channel" kind="choice" default="stable">
<option>stable</option>
<option>testing</option>
</argument>
</page>
</category>
</runbook>
Argument kinds are text, file, folder, switch, and choice. choice arguments need at least one <option>. the default for a choice has to be one of the options.
CLI
runbook list categories and pages
runbook --gui open the window
runbook --list list categories and pages
runbook disk --path / run a page with arguments
Argument value's are passed to the script as environment variables, switches are 1 or 0.
Why "RunBook"?
In a computer system or network, a runbook is a compilation of routine procedures and operations that the system administrator or operator carries out. System administrators in IT departments and NOCs use runbooks as a reference. Runbooks can be in either electronic or in physical book form. Typically, a runbook contains procedures to begin, stop, supervise, and debug the system. It may also describe procedures for handling special requests and contingencies. More at Wikipedia
Building
See BUILD.md.
The icon comes from the gnome adwaita icon theme. see CREDITS.md.