Client for zordfsdb database
Find a file
2026-03-30 12:00:27 +03:00
.gitignore refactor to be TUI app. Added a lot of colors and information around; updated to last lib functionality 2026-03-30 12:00:27 +03:00
go.mod refactor to be TUI app. Added a lot of colors and information around; updated to last lib functionality 2026-03-30 12:00:27 +03:00
go.sum refactor to be TUI app. Added a lot of colors and information around; updated to last lib functionality 2026-03-30 12:00:27 +03:00
LICENSE Initial commit 2024-08-23 08:28:17 +00:00
main.go refactor to be TUI app. Added a lot of colors and information around; updated to last lib functionality 2026-03-30 12:00:27 +03:00
README.md refactor to be TUI app. Added a lot of colors and information around; updated to last lib functionality 2026-03-30 12:00:27 +03:00

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:

  1. Sidebar (Left): A tree-view explorer showing the database structure.
  2. Node Info (Top Right): Details of the selected node in the explorer.
  3. 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+C or Esc: Quit the application.

In Tree Explorer (Focused)

  • / or k/j: Navigate through visible nodes.
  • / or h/l: Expand or collapse the selected node.
  • Enter or Space: 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.
  • QUIT or \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.