cli

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cli builds Wireblast's Cobra command and translates flags into the central config.Config.

Every field the TUI wizard can edit has a flag here, and every flag lands in the same Config the wizard edits — so flags prepopulate the wizard, and --no-tui runs the identical configuration through the identical validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCommand

func NewRootCommand(version string, run RunFunc) *cobra.Command

NewRootCommand builds the `wireblast` command. Running it with no flags at all opens the interactive wizard; --no-tui runs straight from the flags.

Types

type RunFunc

type RunFunc func(ctx context.Context, cfg *config.Config) error

RunFunc is the entry point the root command hands the finished configuration to. It is injected so the flag layer can be tested without a dataplane.

Jump to

Keyboard shortcuts

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