cli

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintCustomUsage added in v0.0.2

func PrintCustomUsage(fs *flag.FlagSet)

PrintCustomUsage prints the styled help menu.

func PrintError

func PrintError(format string, a ...interface{})

PrintError prints [ERR] (ERR is red), message in default, args in bold.

func PrintInfo

func PrintInfo(format string, a ...interface{})

PrintInfo prints [INF] (INF is hi-blue), message in default, args in bold.

func PrintSuccess

func PrintSuccess(format string, a ...interface{})

PrintSuccess prints [SUC] (SUC is green), message in default, args in bold.

Types

type Config

type Config struct {
	Target string `json:"target"`
	Poc    string `json:"poc"`
	Rce    string `json:"rce"`
	Server string `json:"server"`
	OutDir string `json:"out_dir"`
	Force  bool   `json:"force"`
}

Config holds the configuration for the package generation.

func ParseFlags

func ParseFlags(fs *flag.FlagSet, args []string) (*Config, error)

ParseFlags parses the flags for the given FlagSet and returns a Config.

Jump to

Keyboard shortcuts

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