Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddCmd = &cobra.Command{ Use: "add", Short: "Indexes the directory and adds it to the existing index group for future scanning", Long: ` If there's no path specified for scanning, it adds the directory to the pool. It then checks each file, computes checksums, and stores them in the database for comparison during subsequent scans. `, Run: func(cmd *cobra.Command, args []string) { if addPath != "" { _, err := os.Stat(addPath) if err != nil { fmt.Println("the driectry doesn't exist") os.Exit(1) } TripAdd(addPath) } }, }
AddCmd represents the add command
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.