mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
refactor command package to remove globals and add dependency injection
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package options
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
type Interface interface {
|
||||
// AddFlags adds this options' flags to the cobra command.
|
||||
AddFlags(cmd *cobra.Command, v *viper.Viper) error
|
||||
}
|
||||
Reference in New Issue
Block a user