mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
26 lines
330 B
Go
26 lines
330 B
Go
package presenter
|
|
|
|
const (
|
|
UnknownPresenterOption Option = iota
|
|
JSONOption
|
|
)
|
|
|
|
var optionStr = []string{
|
|
"UnknownPresenterOption",
|
|
"json",
|
|
}
|
|
|
|
var Options = []Option{
|
|
JSONOption,
|
|
}
|
|
|
|
type Option int
|
|
|
|
func (o Option) String() string {
|
|
if int(o) >= len(optionStr) || int(o) < 0 {
|
|
return optionStr[0]
|
|
}
|
|
|
|
return optionStr[o]
|
|
}
|