File: staticargs.go

package info (click to toggle)
gitlab-shell 14.35.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,652 kB
  • sloc: ruby: 1,129; makefile: 583; sql: 391; sh: 384
file content (14 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package git

// StaticOption are reusable trusted options
type StaticOption struct {
	value string
}

// OptionArgs just passes through the already trusted value. This never
// returns an error.
func (sa StaticOption) OptionArgs() ([]string, error) { return []string{sa.value}, nil }

// OutputToStdout is used indicate the output should be sent to STDOUT
// Seen in: git bundle create
var OutputToStdout = StaticOption{value: "-"}