mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
add scope feature + lint fixes
This commit is contained in:
+5
-4
@@ -2,21 +2,22 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/spf13/cobra"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
const ApplicationName = "imgbom"
|
||||
|
||||
var rootOptions struct {
|
||||
cfgFile string
|
||||
cfgFile string
|
||||
}
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: ApplicationName,
|
||||
Short: "A container image BOM tool",
|
||||
Long: `todo.`,
|
||||
Run: doRunCmd,
|
||||
Run: doRunCmd,
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
@@ -37,4 +38,4 @@ func loadApplicationConfig() {
|
||||
|
||||
func doRunCmd(cmd *cobra.Command, args []string) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
type Version struct {
|
||||
@@ -30,4 +30,4 @@ func SetVersion(v *Version) {
|
||||
|
||||
func printVersion(cmd *cobra.Command, args []string) {
|
||||
fmt.Printf("%s %s\n", ApplicationName, version.Version)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user