Always print the fucking diff
This commit is contained in:
		| @@ -175,6 +175,10 @@ func syncConfigs(config *Config) error { | ||||
| 			// File doesn't exist, create it | ||||
| 			fileLogger.Info("Creating new file") | ||||
| 			created++ | ||||
|  | ||||
| 			// Print the diff as if the old content was empty and the new content is expectedContent | ||||
| 			generateAndLogDiff(fileLogger, caddyFilename, "", expectedContent) | ||||
|  | ||||
| 			if !*dryRun { | ||||
| 				if err := writeFile(caddyFilename, expectedContent); err != nil { | ||||
| 					return fmt.Errorf("failed to create file %s: %w", caddyFilename, err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user