Skip to content

Commit

Permalink
add version info and remove double config call (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiffcs committed May 2, 2022
1 parent 3697302 commit 4ce2edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/syft/cli/attest.go
Expand Up @@ -49,9 +49,6 @@ func Attest(v *viper.Viper, app *config.Application, ro *options.RootOptions) *c
RunE: func(cmd *cobra.Command, args []string) error {
// this MUST be called first to make sure app config decodes
// the viper object correctly
newLogWrapper(app)
logApplicationConfig(app)

if app.CheckForAppUpdate {
checkForApplicationUpdate()
}
Expand Down
2 changes: 2 additions & 0 deletions cmd/syft/cli/commands.go
Expand Up @@ -123,6 +123,8 @@ func checkForApplicationUpdate() {
}

func logApplicationConfig(app *config.Application) {
versionInfo := version.FromBuild()
log.Infof("syft version: %+v", versionInfo.Version)
log.Debugf("application config:\n%+v", color.Magenta.Sprint(app.String()))
}

Expand Down

0 comments on commit 4ce2edd

Please sign in to comment.