cmd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package cmd contains the CLI implementation for hareply.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLI

func CLI(ctx context.Context, w io.Writer, args []string, opts ...kong.Option) error

CLI runs the hareply CLI.

Types

type Config

type Config struct {
	Debug bool `help:"Enable debug mode."`

	Serve struct {
		Host      string `help:"Host to listen on." default:""`
		Port      int    `help:"Port to reply on." short:"p" default:"8442"`
		StateFile string `help:"Path to read response from." short:"f" default:"agentstate"`
	} `cmd:"" help:"Start hareply TCP responder service."`

	Version kong.VersionFlag
}

Config represents the configuration for the hareply CLI.

Jump to

Keyboard shortcuts

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