Add a --write and --diff flag; require --write to be set before making any changes, for safety
This commit is contained in:
@@ -12,7 +12,12 @@ import (
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func generateKeys(yamlFile string) {
|
||||
func generateKeys(yamlFile string, wantDiff bool, allowWrite bool, useColor bool) {
|
||||
if !allowWrite {
|
||||
fmt.Printf("Key generation requires --write flag\n")
|
||||
return
|
||||
}
|
||||
|
||||
config := loadConfig(yamlFile)
|
||||
|
||||
// Generate keys for each log
|
||||
|
Reference in New Issue
Block a user