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

Function NewCreateFlags

pkg/cmd/account/ssh/create/create.go:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func NewCreateFlags() *CreateFlags {
45 return &CreateFlags{
46 Name: flag.New[string]("name", false),
47 Description: flag.New[string]("description", false),
48 KeyFilePath: flag.New[string]("private-key", false),
49 Username: flag.New[string]("username", false),
50 Passphrase: flag.New[string]("passphrase", true),
51 Environments: flag.New[[]string]("environment", false),
52 }
53}
54
55func NewCreateOptions(flags *CreateFlags, dependencies *cmd.Dependencies) *CreateOptions {
56 return &CreateOptions{

Callers 3

NewCmdCreateFunction · 0.70

Calls 1

NewFunction · 0.92

Tested by 2