context

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProjectSettingsPath

func FindProjectSettingsPath(startDir string) (string, bool, error)

func IsWorkflowCommand

func IsWorkflowCommand(cmd *cobra.Command) bool

IsWorkflowCommand checks if the command is a workflow command

func SetExecutionContext

func SetExecutionContext(cmd *cobra.Command, args []string, projectRootFlag string, logger *zerolog.Logger) error

SetExecutionContext sets the appropriate execution context for commands It first sets the project context, then if it's a workflow command with exactly one argument, it changes to the specific workflow directory

func SetProjectContext

func SetProjectContext(projectPath string) error

SetProjectContext sets the current working directory to the project root If projectPath is provided and not empty, it uses that as the project root Otherwise, it finds the project root using FindProjectSettingsPath

Types

This section is empty.

Jump to

Keyboard shortcuts

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