MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewConvertFlags

Function NewConvertFlags

pkg/cmd/project/convert/convert.go:67–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func NewConvertFlags() *ConvertFlags {
68 return &ConvertFlags{
69 Project: flag.New[string](FlagProject, false),
70 GitStorage: flag.New[string](FlagGitCredentialStorage, false),
71 GitUrl: flag.New[string](FlagGitUrl, false),
72 GitBranch: flag.New[string](FlagGitBranch, false),
73 GitInitialCommitMessage: flag.New[string](FlagGitInitialCommitMessage, false),
74 GitCredentials: flag.New[string](FlagGitLibraryCredentials, false),
75 GitProtectedBranchPatterns: flag.New[[]string](FlagBranchProtectionPattern, false),
76 GitInitialCommitBranch: flag.New[string](FlagInitialCommitBranch, false),
77 GitUsername: flag.New[string](FlagGitUsername, false),
78 GitPassword: flag.New[string](FlagGitPassword, true),
79 GitBasePath: flag.New[string](FlagGitBasePath, false),
80 }
81}
82
83type ConvertOptions struct {
84 *ConvertFlags

Callers 2

NewCreateFlagsFunction · 0.92
NewCmdConvertFunction · 0.85

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected