mirror of
https://github.com/anchore/grype
synced 2024-11-14 00:07:08 +00:00
86b7d165e2
* add db list command Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add stderr print helper Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * update docs to with details about listing files and DB curation Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
15 lines
241 B
Go
15 lines
241 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
func stderrPrintLnf(message string, args ...interface{}) error {
|
|
if !strings.HasSuffix(message, "\n") {
|
|
message += "\n"
|
|
}
|
|
_, err := fmt.Fprintf(os.Stderr, message, args...)
|
|
return err
|
|
}
|