reworking database, init and add commands
This commit is contained in:
		@@ -97,6 +97,7 @@ func AddFiles(input string, inputType string, ignore common.FileTypes, m *engine
 | 
			
		||||
		} else {
 | 
			
		||||
			wildcard = input
 | 
			
		||||
		}
 | 
			
		||||
		m.Info().Msgf("Adding all files with wildcard: %s", wildcard)
 | 
			
		||||
		err := common.CheckFileTypes(wildcard, "wildcard", ignore)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			return err
 | 
			
		||||
@@ -146,6 +147,7 @@ func AddFiles(input string, inputType string, ignore common.FileTypes, m *engine
 | 
			
		||||
			return nil
 | 
			
		||||
		})
 | 
			
		||||
	case "all":
 | 
			
		||||
		m.Info().Msg("Adding all files...")
 | 
			
		||||
		filepath.Walk(workingDir, func(path string, info os.FileInfo, err error) error {
 | 
			
		||||
			if err != nil {
 | 
			
		||||
				return fmt.Errorf("failure accessing path %s", err)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user