cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: AGPL-3.0 Imports: 48 Imported by: 0

Documentation

Overview

Package cmd defines the bitwave CLI command tree.

bitwave is an agent-first accounting platform: workflows an agent (or a human) can drive end-to-end, with delegation-friendly auth modalities. Ledger verbs are top-level (bal, reg, print, ...).

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version is populated by GoReleaser or Make via -ldflags. Empty is the unambiguous linker sentinel: versioned `go install` builds have no ldflags, so init falls back to the module version embedded in Go build information.

Functions

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd builds the bitwave root command tree.

func PostRunMaintenance added in v0.3.0

func PostRunMaintenance()

PostRunMaintenance runs from main after every invocation — success or failure. It cannot live in PersistentPostRun: cobra skips post-hooks when RunE errors, which would leave the update cache stale exactly on the runs where users are struggling. Refreshes the update-check cache at most once per 24h; silent on failure; skipped for quiet runs, dev builds, and BITWAVE_NO_UPDATE_CHECK=1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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