docs: Add new docs and fix rule command
All checks were successful
CI.yml / build (push) Successful in 1m53s
All checks were successful
CI.yml / build (push) Successful in 1m53s
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user