launcher icon indicating copy to clipboard operation
launcher copied to clipboard

tables use tablehelpers.run

Open James-Pickett opened this issue 9 months ago • 0 comments

relates to https://github.com/kolide/launcher/issues/1321

Adds helper functions to enforce timeout and simplify creating / execing commands. Follow on PR will add linting.

func RunSimple(ctx context.Context, slogger *slog.Logger, timeoutSeconds int, cmd allowedcmd.AllowedCommand, args []string, opts ...ExecOps)

func Run(ctx context.Context, slogger *slog.Logger, timeoutSeconds int, execCmd allowedcmd.AllowedCommand, args []string, stdout io.Writer, stderr io.Writer, opts ...ExecOps) error

James-Pickett avatar Apr 26 '24 21:04 James-Pickett