convert

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FlagProject = "project"

	FlagGitUrl                  = "git-url"
	FlagGitBranch               = "git-branch"
	FlagGitLibraryCredentials   = "git-credentials"
	FlagGitUsername             = "git-username"
	FlagGitPassword             = "git-password"
	FlagGitCredentialStorage    = "git-credential-store"
	FlagGitInitialCommitMessage = "git-initial-commit"
	FlagGitBasePath             = "git-base-path"
	FlagInitialCommitBranch     = "git-initial-commit-branch"
	FlagBranchProtectionPattern = "git-protected-branch-pattern"

	DefaultGitCommitMessage    = "Initial commit of deployment process"
	DefaultBasePath            = ".octopus/"
	DefaultBranch              = "main"
	DefaultInitialCommitBranch = "octopus-vcs-conversion"

	GitStorageProject = "project"
	GitStorageLibrary = "library"
)

Variables

This section is empty.

Functions

func NewCmdConvert

func NewCmdConvert(f factory.Factory) *cobra.Command

func PromptForConfigAsCode

func PromptForConfigAsCode(opts *ConvertOptions) (cmd.Dependable, error)

func PromptMissing

func PromptMissing(opts *ConvertOptions) error

func RegisterCacFlags

func RegisterCacFlags(flags *pflag.FlagSet, convertFlags *ConvertFlags)

Types

type ConvertFlags

type ConvertFlags struct {
	Project                    *flag.Flag[string]
	GitUrl                     *flag.Flag[string]
	GitBranch                  *flag.Flag[string]
	GitCredentials             *flag.Flag[string]
	GitUsername                *flag.Flag[string]
	GitPassword                *flag.Flag[string]
	GitStorage                 *flag.Flag[string]
	GitInitialCommitMessage    *flag.Flag[string]
	GitInitialCommitBranch     *flag.Flag[string]
	GitBasePath                *flag.Flag[string]
	GitProtectedBranchPatterns *flag.Flag[[]string]
}

func NewConvertFlags

func NewConvertFlags() *ConvertFlags

type ConvertOptions

type ConvertOptions struct {
	*ConvertFlags
	*cmd.Dependencies
	GetAllGitCredentialsCallback
	GetAllProjectsCallback shared.GetAllProjectsCallback
	GetProjectCallback     shared.GetProjectCallback
}

func NewConvertOptions

func NewConvertOptions(flags *ConvertFlags, dependencies *cmd.Dependencies) *ConvertOptions

func (*ConvertOptions) Commit

func (co *ConvertOptions) Commit() error

func (*ConvertOptions) GenerateAutomationCmd

func (co *ConvertOptions) GenerateAutomationCmd()

type ConvertProjectGroupCallback

type ConvertProjectGroupCallback func(project *projects.Project) (cmd.Dependable, error)

type GetAllGitCredentialsCallback

type GetAllGitCredentialsCallback func() ([]*credentials.Resource, error)

Jump to

Keyboard shortcuts

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