Documentation
¶
Overview ¶
Package domain provides the Domain interface for automatic CLI generation.
Index ¶
- Variables
- func CreateRootCommand(d Domain) *cobra.Command
- func Run(d Domain) error
- type BuildOpts
- type Builder
- type Context
- type Domain
- type Error
- type GitLabDomain
- func (d *GitLabDomain) Builder() coredomain.Builder
- func (d *GitLabDomain) Differ() coredomain.Differ
- func (d *GitLabDomain) Grapher() coredomain.Grapher
- func (d *GitLabDomain) Initializer() coredomain.Initializer
- func (d *GitLabDomain) Linter() coredomain.Linter
- func (d *GitLabDomain) Lister() coredomain.Lister
- func (d *GitLabDomain) Name() string
- func (d *GitLabDomain) Validator() coredomain.Validator
- func (d *GitLabDomain) Version() string
- type GraphOpts
- type Grapher
- type GrapherDomain
- type ImportOpts
- type Importer
- type ImporterDomain
- type InitOpts
- type Initializer
- type LintOpts
- type Linter
- type ListOpts
- type Lister
- type ListerDomain
- type Result
- type ValidateOpts
- type Validator
Constants ¶
This section is empty.
Variables ¶
var ( NewResult = domain.NewResult NewResultWithData = domain.NewResultWithData NewErrorResult = domain.NewErrorResult NewErrorResultMultiple = domain.NewErrorResultMultiple NewContext = domain.NewContext NewContextWithVerbose = domain.NewContextWithVerbose )
Re-export constructors
var Version = "dev"
Version is set at build time
Functions ¶
func CreateRootCommand ¶
CreateRootCommand creates a root command with all standard domain commands. This allows callers to add additional domain-specific commands before executing.
Types ¶
type GitLabDomain ¶
type GitLabDomain struct{}
GitLabDomain implements the Domain interface for GitLab CI/CD.
func (*GitLabDomain) Builder ¶
func (d *GitLabDomain) Builder() coredomain.Builder
Builder returns the GitLab CI builder implementation
func (*GitLabDomain) Differ ¶ added in v1.10.0
func (d *GitLabDomain) Differ() coredomain.Differ
Differ returns the GitLab differ implementation
func (*GitLabDomain) Grapher ¶
func (d *GitLabDomain) Grapher() coredomain.Grapher
Grapher returns the GitLab dependency grapher implementation
func (*GitLabDomain) Initializer ¶
func (d *GitLabDomain) Initializer() coredomain.Initializer
Initializer returns the GitLab project initializer implementation
func (*GitLabDomain) Linter ¶
func (d *GitLabDomain) Linter() coredomain.Linter
Linter returns the GitLab linter implementation
func (*GitLabDomain) Lister ¶
func (d *GitLabDomain) Lister() coredomain.Lister
Lister returns the GitLab resource lister implementation
func (*GitLabDomain) Validator ¶
func (d *GitLabDomain) Validator() coredomain.Validator
Validator returns the GitLab validator implementation
func (*GitLabDomain) Version ¶
func (d *GitLabDomain) Version() string
Version returns the current version
type GrapherDomain ¶
type GrapherDomain = domain.GrapherDomain
GrapherDomain is an optional interface for domains that support graphing.
type ImportOpts ¶
type ImportOpts = domain.ImportOpts
ImportOpts contains options for the Import operation.
type ImporterDomain ¶
type ImporterDomain = domain.ImporterDomain
ImporterDomain is an optional interface for domains that support importing.
type Initializer ¶
type Initializer = domain.Initializer
Initializer creates new domain projects with example code.
type ListerDomain ¶
type ListerDomain = domain.ListerDomain
ListerDomain is an optional interface for domains that support listing.
type ValidateOpts ¶
type ValidateOpts = domain.ValidateOpts
ValidateOpts contains options for the Validate operation.