cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package cmd contains the command-line tooling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() int

Execute locates and loads configuration, loads the configured plugins, sets up the root command, and attaches the various run subcommands.

func RunDepsForGoal added in v0.1.0

func RunDepsForGoal(
	ctx context.Context,
	e *master.InterfaceExecutor,
	phases []*group.Phase,
) func(*cobra.Command, []string) error

RunDepsForGoal returns a command runner for cobra that will report the order of execution for the goal or subtask.

func RunGoal

func RunGoal(
	ctx context.Context,
	e *master.InterfaceExecutor,
	phases []*group.Phase,
) func(*cobra.Command, []string) error

RunGoal returns a command runner for cobra that will execute a particular goal or subtask.

func TemplateFile

func TemplateFile(_ *cobra.Command, args []string)

Types

type CmdBuilder added in v0.1.0

type CmdBuilder func(context.Context, *master.InterfaceExecutor, []*group.Phase) func(*cobra.Command, []string) error

Jump to

Keyboard shortcuts

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