Documentation
¶
Overview ¶
Package ci provides CI/CD integration commands.
Index ¶
- func NewValidateCommand() *cobra.Command
- func RunValidateFiles(cmd *cobra.Command, paths []string) error
- func RunValidateFilesExcluding(cmd *cobra.Command, paths []string, excludes []string) error
- type CICommandProvider
- func (c *CICommandProvider) GetAliases() []internal.CommandAlias
- func (c *CICommandProvider) GetCommand() *cobra.Command
- func (c *CICommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag
- func (c *CICommandProvider) GetFlagsBuilder() flags.Builder
- func (c *CICommandProvider) GetGroup() string
- func (c *CICommandProvider) GetName() string
- func (c *CICommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder
- func (c *CICommandProvider) IsExperimental() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidateCommand ¶
NewValidateCommand creates the GitHub Actions validation command. It is mounted at both `atmos ci validate` and the validation-oriented alias `atmos validate ci`.
func RunValidateFiles ¶
RunValidateFiles validates the provided workflow files. A nil paths list retains whole-directory validation and is used by aggregate validation when an actionlint configuration change can affect every workflow.
Types ¶
type CICommandProvider ¶
type CICommandProvider struct{}
CICommandProvider implements the CommandProvider interface.
func (*CICommandProvider) GetAliases ¶
func (c *CICommandProvider) GetAliases() []internal.CommandAlias
GetAliases returns command aliases. CI command has no aliases.
func (*CICommandProvider) GetCommand ¶
func (c *CICommandProvider) GetCommand() *cobra.Command
GetCommand returns the ci command.
func (*CICommandProvider) GetCompatibilityFlags ¶
func (c *CICommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag
GetCompatibilityFlags returns compatibility flags for this command. CI command has no compatibility flags.
func (*CICommandProvider) GetFlagsBuilder ¶
func (c *CICommandProvider) GetFlagsBuilder() flags.Builder
GetFlagsBuilder returns the flags builder for this command. CI command has no flags at the parent level.
func (*CICommandProvider) GetGroup ¶
func (c *CICommandProvider) GetGroup() string
GetGroup returns the command group for help organization.
func (*CICommandProvider) GetName ¶
func (c *CICommandProvider) GetName() string
GetName returns the command name.
func (*CICommandProvider) GetPositionalArgsBuilder ¶
func (c *CICommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder
GetPositionalArgsBuilder returns the positional args builder for this command. CI command has no positional arguments.
func (*CICommandProvider) IsExperimental ¶
func (c *CICommandProvider) IsExperimental() bool
IsExperimental returns true because CI commands are experimental.