cmdstate

package
v0.0.0-...-08d3c8d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 6 Imported by: 30

Documentation

Overview

Package cmdstate implements a overlord.StateManager that excutes arbitrary commands as tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecWithTimeout

func ExecWithTimeout(st *state.State, summary string, argv []string, timeout time.Duration) *state.TaskSet

ExecWithTimeout creates a task that will execute the given command with the given timeout.

Types

type CommandManager

type CommandManager struct{}

CommandManager helps running arbitrary commands as tasks.

func Manager

func Manager(st *state.State, runner *state.TaskRunner) *CommandManager

Manager returns a new CommandManager.

func (*CommandManager) Ensure

func (m *CommandManager) Ensure() error

Ensure is part of the overlord.StateManager interface.

Jump to

Keyboard shortcuts

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