docs: Add new docs and fix rule command
All checks were successful
CI.yml / build (push) Successful in 1m53s

This commit is contained in:
d3m0k1d
2026-01-15 18:06:48 +03:00
parent 14c6c64989
commit eaf276bd3f
3 changed files with 56 additions and 1 deletions

View File

@@ -29,7 +29,11 @@ var AddCmd = &cobra.Command{
fmt.Printf("Rule name can't be empty\n")
os.Exit(1)
}
if service == "" && path == "" && status == "" && method == "" {
if service == "" {
fmt.Printf("Service name can't be empty\n")
os.Exit(1)
}
if path == "" && status == "" && method == "" {
fmt.Printf("At least 1 rule field must be filled in.")
os.Exit(1)
}