add scope feature + lint fixes

This commit is contained in:
Alex Goodman
2020-05-12 20:43:46 -04:00
parent 1e5c7bb5c7
commit 11b2b1ab45
9 changed files with 194 additions and 19 deletions
+5 -4
View File
@@ -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
View File
@@ -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)
}
}