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

Function NewUpdateFlags

pkg/cmd/project/variables/update/update.go:53–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func NewUpdateFlags() *UpdateFlags {
54 return &UpdateFlags{
55 Id: flag.New[string](FlagId, false),
56 Project: flag.New[string](FlagProject, false),
57 Name: flag.New[string](FlagName, false),
58 Value: flag.New[string](FlagValue, false),
59 Unscoped: flag.New[bool](FlagUnscoped, false),
60 GitRef: flag.New[string](FlagGitRef, false),
61 ScopeFlags: sharedProjectVariable.NewScopeFlags(),
62 }
63}
64
65func NewUpdateOptions(flags *UpdateFlags, dependencies *cmd.Dependencies) *UpdateOptions {
66 return &UpdateOptions{

Calls

no outgoing calls