flagsparser

package
v0.0.0-...-3de72e3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package flagsparser provides functionalities to understand command line flags associated with various action types so that they can be used during input processing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandFlags

func CommandFlags(ctx context.Context, command []string, workingDir, execRoot string) (*flags.CommandFlags, error)

CommandFlags converts the given command into the CommandFlags representation of the command args.

Types

type InputProcessor

type InputProcessor struct {
	// OutputDirDep indicates that the action relies on the output directory to already
	// exist.
	OutputDirDep bool
}

InputProcessor is a basic input processor that retrieves an InputSpec based on the parsed flags.

Jump to

Keyboard shortcuts

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