Documentation ¶
Index ¶
- func Detect(cli *CliStruct) (string, error)
- type AutoGenerate
- func (ag *AutoGenerate) GetAllFilesInRepo(ctx context.Context) ([]string, error)
- func (ag *AutoGenerate) GetFilePatternTasks(ctx context.Context, config Config) (bool, []string, error)
- func (ag *AutoGenerate) GetTasks() ([]string, error)
- func (ag *AutoGenerate) New(filename string) error
- func (ag *AutoGenerate) Output(configs map[string]Config, content string) (string, error)
- type CliStruct
- type Config
- type Params
- type Task
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoGenerate ¶
type AutoGenerate struct {
// contains filtered or unexported fields
}
func (*AutoGenerate) GetAllFilesInRepo ¶
func (ag *AutoGenerate) GetAllFilesInRepo(ctx context.Context) ([]string, error)
func (*AutoGenerate) GetFilePatternTasks ¶
func (*AutoGenerate) GetTasks ¶
func (ag *AutoGenerate) GetTasks() ([]string, error)
func (*AutoGenerate) New ¶
func (ag *AutoGenerate) New(filename string) error
type CliStruct ¶
type CliStruct struct { OwnerRepo string `arg:"" help:"GitHub owner/repo" placeholder:"OWNER/REPO"` Token string `help:"GitHub token to use" env:"GITHUB_TOKEN" placeholder:"TOKEN" short:"t"` TargetRef string `help:"The target reference when fetching the files (default: main branch)" placeholder:"REF"` AutoGenerateYaml string `help:"Path to the autogenerate.yaml file" placeholder:"FILE" type:"existingfile"` PipelineRunYaml string `help:"path to the default pipelinerun template" placeholder:"FILE" type:"existingfile"` TemplatesLanguageDir string `help:"path to the per language templates directory" placeholder:"DIR" type:"existingdir"` }
Click to show internal directories.
Click to hide internal directories.