Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToWorkflowLintInfo ¶
func ToWorkflowLintInfo( wfInfoList []*workflow.WorkflowInfo, config *workflow.ActionArmorConfigFile, gitExecutor gitexec.GitExecutor, flags LinterFlags, ) ([]linter.WorkflowLintInfo, error)
ToWorkflowLintInfo converts a list of WorkflowInfo to a list of WorkflowLintInfo.
Types ¶
type CacheFlags ¶
type Environment ¶
type Environment struct {
Logger *slog.Logger
EoeParams *eoe.ExitOnErrorParams
GqlClient *api.GraphQLClient
GitExecutor gitexec.GitExecutor
GdExecutor gitdescribe.Executor
Linter linter.Linter
}
func Execute ¶
func Execute() (*Environment, []*linter.Error)
func NewEnvironment ¶
func NewEnvironment(ctx context.Context, logLevel slog.Level, flags *CacheFlags) (*Environment, error)
type Flags ¶
type Flags struct {
RunFlags
CacheFlags
LinterFlags
}
type LinterFlags ¶
type NamedFlagSet ¶
NamedFlagSet represents a named pflag.FlagSet
func NewCacheFlagSet ¶
func NewCacheFlagSet(flags *Flags) *NamedFlagSet
func NewLinterFlagSet ¶
func NewLinterFlagSet(flags *Flags) *NamedFlagSet
func NewRunFlagSet ¶
func NewRunFlagSet(flags *Flags) *NamedFlagSet
type NewFlagSetFunc ¶
type NewFlagSetFunc func(*Flags) *NamedFlagSet
Click to show internal directories.
Click to hide internal directories.