commands

package
v0.0.0-...-8ae0ef9 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureCompareCommand

func ConfigureCompareCommand(app *kingpin.Application, inputReader io.Reader, outputWriter io.Writer)

func ConfigureCostCommand

func ConfigureCostCommand(app *kingpin.Application, inputReader io.Reader, outputWriter io.Writer)

func ConfigureGenerateCommand

func ConfigureGenerateCommand(app *kingpin.Application, outputWriter io.Writer)

func ConfigureHashCommand

func ConfigureHashCommand(app *kingpin.Application, inputReader io.Reader, outputWriter io.Writer)

Types

type CompareCommand

type CompareCommand struct {
	In  io.Reader
	Out io.Writer
}

func (*CompareCommand) Run

func (command *CompareCommand) Run(_ *kingpin.ParseContext) error

type CostCommand

type CostCommand struct {
	In  io.Reader
	Out io.Writer
}

func (*CostCommand) Run

func (command *CostCommand) Run(context *kingpin.ParseContext) error

type GenerateCommand

type GenerateCommand struct {
	Cost   int
	Length int
	Out    io.Writer
}

func (*GenerateCommand) Run

func (command *GenerateCommand) Run(context *kingpin.ParseContext) error

type HashCommand

type HashCommand struct {
	Cost int
	In   io.Reader
	Out  io.Writer
}

func (*HashCommand) Run

func (command *HashCommand) Run(context *kingpin.ParseContext) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳