vote

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Amount    int  `help:"Amount users to use." short:"n" default:"10"`
	PollID    int  `help:"ID of the poll to use." short:"i" default:"1"`
	Interrupt bool `help:"Wait for a user input after login."`
	Loop      bool `help:"After the test, start it again with the logged in users."`
}

Options is the meta information for the cli.

func (Options) Help

func (o Options) Help() string

Help returns the help message

func (Options) Run

func (o Options) Run(ctx context.Context, cfg config.Config) error

Run runs the command.

Jump to

Keyboard shortcuts

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