feat: Added new check command.

This commit is contained in:
2025-11-06 17:11:35 -05:00
parent c9c34ce771
commit cbd74f387e
5 changed files with 138 additions and 3 deletions

View File

@@ -326,8 +326,15 @@ func (db *Db) Delete(path string) error {
}
// Finds .env files in the filesystem that aren't present in the database.
func (db *Db) Scan() ([]string, error) {
all_paths, err := db.cfg.scan()
// path overrides the already configured
func (db *Db) Scan(paths []string) ([]string, error) {
cfg := db.cfg
if paths != nil {
cfg.ScanConfig.Include = paths
}
all_paths, err := cfg.scan()
if err != nil {
return []string{}, err
}