vaultui

package module
v0.0.0-...-2a61a69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 14 Imported by: 0

README

vaultui

Go Reference

A terminal UI for managing vault entries.

Built with Bubble Tea and huh.

Install

go get github.com/bjaus/vaultui

Usage

package main

import (
    "log"

    "github.com/bjaus/vault"
    "github.com/bjaus/vault/keychain"
    "github.com/bjaus/vaultui"
)

func main() {
    v := vault.New(
        vault.WithStore(keychain.New()),
        vault.WithNamespace("prod"),
    )

    if err := vaultui.Run(v); err != nil {
        log.Fatal(err)
    }
}

Features

  • Browse entries with filtering
  • Add new entries
  • Edit existing entries
  • Delete entries with confirmation
  • Refresh from configured sources

Keybindings

Key Action
a Add a new entry
e / Enter Edit selected entry
d Delete selected entry
r Refresh from sources
/ Filter entries
q Quit

License

MIT

Documentation

Overview

Package vaultui provides a terminal UI for managing vault entries.

The TUI operates on a vault.Vault interface, supporting browsing, adding, editing, deleting, and refreshing entries from sources.

Launch it with Run:

err := vaultui.Run(myVault)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(v vault.Vault) error

Run launches an interactive TUI for managing entries in the vault.

Types

This section is empty.

Directories

Path Synopsis
cmd
demo command
Command demo launches the vault TUI with sample data.
Command demo launches the vault TUI with sample data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL