From 99219da16bc7651126f61f8132209eb4f3c7cbaf Mon Sep 17 00:00:00 2001 From: Michael Chernov <4ernovm@gmail.com> Date: Tue, 16 Jan 2024 16:41:50 +0200 Subject: [PATCH] Unhide fingerprint command --- internal/cmd/fingerprint/fingerprint.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/cmd/fingerprint/fingerprint.go b/internal/cmd/fingerprint/fingerprint.go index 4ac2888f..8d3d08e1 100644 --- a/internal/cmd/fingerprint/fingerprint.go +++ b/internal/cmd/fingerprint/fingerprint.go @@ -24,10 +24,9 @@ func NewFingerprintCmd(fingerprinter fingerprint.IFingerprint) *cobra.Command { short := "Fingerprints files to match against the Debricked knowledge base. [beta feature]" long := fmt.Sprintf("Fingerprint files for identification in a given path and writes it to %s. [beta feature]\nThis hashes all files and matches them against the Debricked knowledge base.", fingerprint.OutputFileNameFingerprints) cmd := &cobra.Command{ - Use: "fingerprint [path]", - Short: short, - Hidden: true, - Long: long, + Use: "fingerprint [path]", + Short: short, + Long: long, PreRun: func(cmd *cobra.Command, _ []string) { _ = viper.BindPFlags(cmd.Flags()) },