diff --git a/cmd/root.go b/cmd/root.go index 470ae2f..89d5d7d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -28,10 +28,7 @@ import ( var preset string var scriptPath string -type script struct { - Presets []string - Times []float64 -} +type script []string func (s *script) load(path string) error { f, err := os.Open(path) @@ -54,7 +51,7 @@ func getPresets() []string { if scriptPath != "" { var s script s.load(scriptPath) - presets = s.Presets + presets = s } return presets