help.toml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # help
  2. [[cmd]]
  3. name = "Running ‘dog --help’ shows help"
  4. shell = "dog --help"
  5. stdout = { string = "dog ●" }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ 'options' ]
  9. [[cmd]]
  10. name = "Running ‘dog --help --color=automatic’ not to a terminal shows help without colour"
  11. shell = "dog --help --color=automatic"
  12. stdout = { string = "dog ●" }
  13. stderr = { empty = true }
  14. status = 0
  15. tags = [ 'options' ]
  16. [[cmd]]
  17. name = "Running ‘dog --help --colour=always’ shows help with colour"
  18. shell = "dog --help --colour=always"
  19. stdout = { string = "dog \u001B[1;32m●\u001B[0m" }
  20. stderr = { empty = true }
  21. status = 0
  22. tags = [ 'options' ]
  23. [[cmd]]
  24. name = "Running ‘dog --help --color=never’ shows without colour"
  25. shell = "dog --help --color=never"
  26. stdout = { string = "dog ●" }
  27. stderr = { empty = true }
  28. status = 0
  29. tags = [ 'options' ]
  30. [[cmd]]
  31. name = "Running ‘dog’ with no arguments shows help"
  32. shell = "dog"
  33. stdout = { string = "dog ●" }
  34. stderr = { empty = true }
  35. status = 3
  36. tags = [ 'options' ]
  37. # versions
  38. [[cmd]]
  39. name = "Running ‘dog --version’ shows version information"
  40. shell = "dog --version"
  41. stdout = { string = "dog ●" }
  42. stderr = { empty = true }
  43. status = 0
  44. tags = [ 'options' ]
  45. [[cmd]]
  46. name = "Running ‘dog --version --colour=automatic’ not to a terminal shows version information without colour"
  47. shell = "dog --version --colour=automatic"
  48. stdout = { string = "dog ●" }
  49. stderr = { empty = true }
  50. status = 0
  51. tags = [ 'options' ]
  52. [[cmd]]
  53. name = "Running ‘dog --version --color=always’ shows version information with colour"
  54. shell = "dog --version --color=always"
  55. stdout = { string = "dog \u001B[1;32m●\u001B[0m" }
  56. stderr = { empty = true }
  57. status = 0
  58. tags = [ 'options' ]
  59. [[cmd]]
  60. name = "Running ‘dog --version --colour=never’ shows version information without colour"
  61. shell = "dog --version --colour=never"
  62. stdout = { string = "dog ●" }
  63. stderr = { empty = true }
  64. status = 0
  65. tags = [ 'options' ]