cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func ExecuteArgs

func ExecuteArgs(args []string) error

ExecuteArgs is used in tests to invoke the CLI with specific args.

func ResetOutput

func ResetOutput()

ResetOutput restores stdout/stderr to os defaults and resets flag state for test isolation.

func SetCreateAfterJournalHook added in v0.2.0

func SetCreateAfterJournalHook(fn func())

SetCreateAfterJournalHook installs a test hook that fires inside runCreate right after the first journal.Write. Pass nil to clear.

func SetOutput

func SetOutput(out, err io.Writer)

SetOutput redirects stdout/stderr for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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