Documentation
¶
Overview ¶
Package harness implements the `harness` command group.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdHarness ¶
func NewCmdHarness(inv *cmd.Invocation) *cmd.Command
NewCmdHarness creates the `harness` command.
func NewCmdHarnessContext ¶
func NewCmdHarnessContext(inv *cmd.Invocation) *cmd.Command
NewCmdHarnessContext creates the `harness context` command.
func NewCmdHarnessExec ¶ added in v0.4.0
func NewCmdHarnessExec(inv *cmd.Invocation) *cmd.Command
NewCmdHarnessExec creates the `harness exec` command.
func NewCmdHarnessInstall ¶
func NewCmdHarnessInstall(inv *cmd.Invocation) *cmd.Command
NewCmdHarnessInstall creates the `harness install` command.
Types ¶
type ContextOpts ¶
type ContextOpts struct {
IO iostreams.IOStreams
Profile *profile.Profile
Output *format.Outputter
}
ContextOpts defines the options for the `harness context` command.
type ExecOpts ¶ added in v0.4.0
type ExecOpts struct {
IO iostreams.IOStreams
DryRun bool
// AllowDelete holds the raw --allow-delete values (repeatable + CSV).
AllowDelete []string
// Argv is the child command and its arguments (everything after `--`).
Argv []string
// Injectable seams for tests.
Store *execsession.Store
PID int
Run func(ctx context.Context, argv, env []string, io iostreams.IOStreams) (int, error)
}
ExecOpts defines the options for the `harness exec` command.
Click to show internal directories.
Click to hide internal directories.