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

Function applyDefaultsToUnspecifiedOptions

pkg/cmd/package/zip/create/create.go:95–111  ·  view source on GitHub ↗
(opts *pack.PackageCreateOptions)

Source from the content-addressed store, hash-verified

93}
94
95func applyDefaultsToUnspecifiedOptions(opts *pack.PackageCreateOptions) {
96 if opts.Version.Value == "" {
97 opts.Version.Value = pack.BuildTimestampSemVer(time.Now())
98 }
99
100 if opts.BasePath.Value == "" {
101 opts.BasePath.Value = "."
102 }
103
104 if opts.OutFolder.Value == "" {
105 opts.OutFolder.Value = "."
106 }
107
108 if len(opts.Include.Value) == 0 {
109 opts.Include.Value = append(opts.Include.Value, "**")
110 }
111}

Callers 1

createRunFunction · 0.85

Calls 1

NowMethod · 0.80

Tested by

no test coverage detected