cmd

package
v0.246.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const NoticeURL = "https://api.nektosact.com/notices"

Variables

View Source
var (
	UserHomeDir  string
	CacheHomeDir string
)

Functions

func Execute

func Execute(ctx context.Context, version string)

Execute is the entry point to running the CLI

Types

type Input

type Input struct {
	// contains filtered or unexported fields
}

Input contains the input for the root command

func (*Input) Envfile

func (i *Input) Envfile() string

Envfile returns path to .env

func (*Input) EventPath

func (i *Input) EventPath() string

EventPath returns the path to events file

func (*Input) Inputfile

func (i *Input) Inputfile() string

Inputfile returns the path to the input file

func (*Input) Secretfile

func (i *Input) Secretfile() string

Secretfile returns path to secrets

func (*Input) Varfile

func (i *Input) Varfile() string

func (*Input) Workdir

func (i *Input) Workdir() string

Workdir returns path to workdir

func (*Input) WorkflowsPath

func (i *Input) WorkflowsPath() string

WorkflowsPath returns path to workflow file(s)

type Notice

type Notice struct {
	Level   string `json:"level"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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