mirror of
https://github.com/anchore/syft.git
synced 2026-11-04 00:16:38 +01:00
add app config and logging interface
This commit is contained in:
@@ -8,7 +8,7 @@ const (
|
||||
AllLayersScope
|
||||
)
|
||||
|
||||
type Option int
|
||||
type Option uint
|
||||
|
||||
var optionStr = []string{
|
||||
"UnknownScope",
|
||||
@@ -32,7 +32,7 @@ func ParseOption(userStr string) Option {
|
||||
}
|
||||
|
||||
func (o Option) String() string {
|
||||
if int(o) >= len(optionStr) || int(o) < 0 {
|
||||
if int(o) >= len(optionStr) {
|
||||
return optionStr[0]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user