cli

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(rootCmd *cobra.Command)

AddFlags runs all registered SetupCLI plugin functions in order to register CLI flags for the specified root command.

func BeforeCommand

func BeforeCommand(cmd *cobra.Command) error

BeforeCommand runs all registered BeforeRun plugin functions just before the selected command runs; it terminates as soon as the first plugin function returns a non-nil error and then itself returns this non-nil error.

func FixArgs

func FixArgs()

FixArgs works around Wiresharks extcap CLI flag passing idiosyncrasies of especially passing bool flags in some situations as "--foo true" as opposed to either "--foo" or "--foo=true". We therefore simply tack on any "true"s and "false"s that immediately follow any "--flag" to the preceding flag.

Types

This section is empty.

Directories

Path Synopsis
Package action implements the handling of Wireshark's extcap CLI action flag.
Package action implements the handling of Wireshark's extcap CLI action flag.
Package all ensures to pull in the required packages for (obscure) CLI args as well as the set of extcap implementations
Package all ensures to pull in the required packages for (obscure) CLI args as well as the set of extcap implementations
Package cliplugin defines the plugin group types for setting up the extcap plugin CLI args in a modular way.
Package cliplugin defines the plugin group types for setting up the extcap plugin CLI args in a modular way.
Package debug implements the “--debug” and “--debug-file” CLI args.
Package debug implements the “--debug” and “--debug-file” CLI args.

Jump to

Keyboard shortcuts

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