Add --grep flag to logs command

This commit is contained in:
M. Mert Yildiran
2024-05-23 01:20:55 +03:00
parent 359623c538
commit af2086a54d
7 changed files with 34 additions and 7 deletions

View File

@@ -10,10 +10,12 @@ import (
const (
FileLogsName = "file"
GrepLogsName = "grep"
)
type LogsConfig struct {
FileStr string `yaml:"file" json:"file"`
Grep string `yaml:"grep" json:"grep"`
}
func (config *LogsConfig) Validate() error {