history

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KV

func KV(key, value string) string

KV formats a key=value pair. If the value contains spaces or is empty, the value is quoted.

func Log

func Log(operation string, details ...string)

Log writes an entry to ~/.certui/history.log. Format: 2026-04-13 18:45:22 | operation | key=value key="value with spaces" Silent on any failure — must not interrupt the TUI.

func NewView

func NewView() tea.Model

func Path

func Path() string

Path returns the path to the history log file.

func Read

func Read() ([]string, error)

Read returns the history log lines (all lines, oldest first).

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

Jump to

Keyboard shortcuts

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