You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

process.toml 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. # name: Name of the program or language. Used to identify which process to spawn (e.g. 'ls').
  2. # Does not need to match the command of the process. Only needs to be unique.
  3. #
  4. # comm: Command of the process to spawn (e.g. 'ls').
  5. #
  6. # args: Whether arguments from the client should be appended to 'comm' before spawning.
  7. # default: false
  8. #
  9. # draw: Whether the client is expected to handle the output of the spawned process.
  10. # If false, the client should cease output to the terminal for the duration of the process.
  11. # default: true
  12. #
  13. # file: File extension of the language (e.g. 'c', 'cpp', 'rs').
  14. # programs
  15. [palindrome]
  16. name = 'palindrome pal'
  17. comm = './programs/palindrome'
  18. args = true
  19. [ls]
  20. name = 'ls'
  21. comm = 'ls'
  22. [vim]
  23. name = 'vim'
  24. comm = 'vim'
  25. draw = false
  26. [prime]
  27. name = 'prime'
  28. comm = './programs/prime'
  29. args = true
  30. [withfeathers]
  31. name = 'withfeathers wf'
  32. comm = 'python3 ./programs/withfeathers.py'
  33. args = true
  34. # languages
  35. [c]
  36. name = 'c'
  37. file = 'c'
  38. comm = [
  39. 'gcc -o <path> <path>.c',
  40. '<path>',
  41. ]
  42. [cpp]
  43. name = 'c++ cpp'
  44. file = 'cpp'
  45. comm = [
  46. 'g++ -o <path> <path>.cpp',
  47. '<path>',
  48. ]
  49. [go]
  50. name = 'go'
  51. file = 'go'
  52. comm = 'go run <path>'
  53. [haskell]
  54. name = 'haskell'
  55. file = 'hs'
  56. comm = 'ghci <path>'
  57. [java]
  58. name = 'java'
  59. file = 'java'
  60. comm = [
  61. 'javac <path>',
  62. 'class=$(basename -- <path>)',
  63. 'class="\<path>%.*"',
  64. 'java $class',
  65. ]
  66. [javascript]
  67. name = 'javascript'
  68. file = 'js'
  69. comm = 'node <path>'
  70. [python]
  71. name = 'python'
  72. file = 'py'
  73. comm = 'python3 <path>'
  74. [ruby]
  75. name = 'ruby'
  76. file = 'rb'
  77. comm = 'ruby <path>'
  78. [rust]
  79. name = 'rust'
  80. file = 'rs'
  81. comm = [
  82. 'rustc -o <path> <path>.rs',
  83. '<path>',
  84. ]
  85. [schema]
  86. name = 'scheme'
  87. file = 'scm'
  88. comm = 'scheme <path>'
  89. [markdown]
  90. name = 'markdown'
  91. file = 'md'
  92. comm = [
  93. 'pandoc -f markdown -t html -s <path>.md -o <path>.html -H <dir>/head.html',
  94. 'echo <path>.html',
  95. ]