4
0

basics.toml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Colour output
  2. [[cmd]]
  3. shell = "dog dns.google --colour=always"
  4. stdout = { string = "\u001B[1;32mA\u001B[0m \u001B[1;34mdns.google.\u001B[0m" }
  5. stderr = { empty = true }
  6. status = 0
  7. tags = [ "live", "google" ]
  8. [[cmd]]
  9. shell = "dog dns.google"
  10. stdout = { string = "A dns.google." }
  11. stderr = { empty = true }
  12. status = 0
  13. tags = [ "live", "google" ]
  14. [[cmd]]
  15. shell = "dog dns.google --colour=never"
  16. stdout = { string = "A dns.google." }
  17. stderr = { empty = true }
  18. status = 0
  19. tags = [ "live", "google" ]
  20. # Default record type and transport
  21. [[cmd]]
  22. shell = "dog dns.google -U"
  23. stdout = { string = "A dns.google." }
  24. stderr = { empty = true }
  25. status = 0
  26. tags = [ "live", "google" ]
  27. [[cmd]]
  28. shell = "dog A dns.google"
  29. stdout = { string = "A dns.google." }
  30. stderr = { empty = true }
  31. status = 0
  32. tags = [ "live", "google" ]
  33. [[cmd]]
  34. shell = "dog A dns.google --time"
  35. stdout = { string = "Ran in" }
  36. stderr = { empty = true }
  37. status = 0
  38. tags = [ "live", "google" ]
  39. # Network errors
  40. [[cmd]]
  41. shell = "dog A dns.google @non.exist --time"
  42. stdout = { string = "Ran in" }
  43. stderr = { string = "Error [network]" }
  44. status = 1
  45. tags = [ "live", "google" ]