(opts *pack.PackageCreateOptions)
| 93 | } |
| 94 | |
| 95 | func 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 | } |