Client for zordfsdb database
- Go 100%
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
zordfsdb-client
TUI-based client for zordfsdb database.
Installation
go build -o zordfsdb-client main.go
Usage
./zordfsdb-client [flags]
Flags
-d: Database root directory (default:./).-e: Execute a single command or a string of commands separated by;surrounded by double quotes and exit.-p: Optional password for encrypted zip databases.
TUI Interface
The TUI is split into three main areas:
- Sidebar (Left): A tree-view explorer showing the database structure.
- Node Info (Top Right): Details of the selected node in the explorer.
- Console (Bottom Right): Command execution history and input area.
Keyboard Shortcuts
Tab: Switch focus between the tree-view explorer and the console.Ctrl+T: Toggle the sidebar visibility.Ctrl+CorEsc: Quit the application.
In Tree Explorer (Focused)
↑/↓ork/j: Navigate through visible nodes.←/→orh/l: Expand or collapse the selected node.EnterorSpace: Toggle expansion of the selected node.
In Console (Focused)
Enter: Execute the typed command.PgUp/PgDn: Scroll the execution history.
Commands
Type HELP or \H in the console to see the list of supported database commands. Common commands include:
KEYS [path]: List properties/objects/lists at the path.GET [path]: Get the value of a property.SAVE [path] [value]: Set the value of a property.CREATE [path]: Create a list or object.QUITor\Q: Exit the application.
Shortcuts like \K, \G, \S, etc., are also supported. Use _ to refer to the last used path and $ for the last returned index.