Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Success is the exit code when a command execution is successful. Success int = iota // SpecError is the exit code when reading the spec file fails. SpecError // FlagError is the exit code when an undefined or invalid flag is provided to a command. FlagError // PreflightError is the exit code when a preflight check fails. PreflightError // OSError is the exit code when an OS operation fails. OSError // GoError is the exit code when a go command fails. GoError // GitError is the exit code when a git command fails. GitError // GitHubError is the exit code when a GitHub operation fails. GitHubError // ChangelogError is the exit code when generating the changelog fails. ChangelogError // UnsupportedError is the exit code when a capability is not supported. UnsupportedError // MiscError is the exit code when a miscellaneous operation fails. MiscError )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreflightChecklist ¶
type PreflightChecklist struct {
Go bool
}
PreflightChecklist is a list of preflight checks for commands.
type PreflightInfo ¶
PreflightInfo is a list of preflight information for commands.
func RunPreflightChecks ¶
func RunPreflightChecks(ctx context.Context, checklist PreflightChecklist) (PreflightInfo, error)
RunPreflightChecks runs a list of preflight checks to ensure they are fulfilled. It returns a list of preflight information.
Click to show internal directories.
Click to hide internal directories.