discover

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WorkflowDir is the directory where agent workflows are stored
	WorkflowDir = ".github/hooks"
)

Variables

This section is empty.

Functions

func Exists

func Exists(rootDir, workflowName string) (string, bool)

Exists checks if a specific workflow file exists

Types

type WorkflowFile

type WorkflowFile struct {
	Path    string // Full path to the file
	Name    string // Workflow name (filename without extension)
	RelPath string // Relative path from root
}

WorkflowFile represents a discovered workflow file

func Discover

func Discover(rootDir string) ([]WorkflowFile, error)

Discover finds all workflow files in the given directory

func DiscoverByGlob

func DiscoverByGlob(rootDir string, pattern string) ([]WorkflowFile, error)

DiscoverByGlob finds workflow files matching a glob pattern

Jump to

Keyboard shortcuts

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