cli.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. name: sync-it
  2. author: Samuel W. Flint <swflint@flintfam.org>
  3. about: Synchronize directories flexibly
  4. settings:
  5. - SubcommandRequired
  6. args:
  7. - config:
  8. short: c
  9. long: config
  10. value_name: FILE
  11. help: Sets a custom config file
  12. takes_value: true
  13. - license:
  14. short: l
  15. long: license
  16. help: Shows license
  17. takes_value: false
  18. subcommands:
  19. - run:
  20. about: Run sychronization for repositories and groups
  21. aliases:
  22. - sync
  23. - rr
  24. args:
  25. - name:
  26. index: 1
  27. multiple: true
  28. value_name: REPO_OR_GROUP
  29. help: The name of a repository or group to sync
  30. - repository:
  31. about: Create and manage repositories
  32. settings:
  33. - SubcommandRequired
  34. aliases:
  35. - repo
  36. - r
  37. subcommands:
  38. - list:
  39. about: List repositories
  40. - register:
  41. about: Register the current directory as a repository
  42. args:
  43. - type:
  44. index: 1
  45. value_name: REPO_TYPE
  46. help: The type of repository
  47. required: true
  48. - name:
  49. long: name
  50. short: n
  51. value_name: REPO_NAME
  52. help: The name of the repository
  53. - options:
  54. index: 2
  55. value_name: OPTION
  56. help: Type-specific options, in form "name=value"
  57. multiple: true
  58. - config:
  59. about: Configure a repository
  60. args:
  61. - name:
  62. index: 1
  63. value_name: NAME
  64. help: The name of the repository
  65. required: true
  66. - autocreate:
  67. long: autocreate
  68. value_name: YES/NO
  69. help: Enable autocreation
  70. takes_value: true
  71. multiple: false
  72. - disable:
  73. long: disable
  74. value_name: YES/NO
  75. help: Disable repository
  76. takes_value: true
  77. multiple: false
  78. - options:
  79. long: options
  80. value_name: OPTION=VALUE
  81. help: Type-specific options
  82. multiple: true
  83. takes_value: true
  84. - show:
  85. about: Show information about a repository
  86. args:
  87. - name:
  88. index: 1
  89. value_name: NAME
  90. help: The name of the repository
  91. required: true
  92. - group:
  93. about: Create and manage groups of repositories
  94. settings:
  95. - SubcommandRequired
  96. subcommands:
  97. - create:
  98. about: Create a group
  99. args:
  100. - name:
  101. index: 1
  102. value_name: GROUP_NAME
  103. help: The name of the group
  104. required: true
  105. - delete:
  106. about: Delete a group
  107. args:
  108. - name:
  109. index: 1
  110. value_name: GROUP_NAME
  111. help: The name of the group
  112. required: true
  113. - add:
  114. about: Add a repo to a group
  115. args:
  116. - name:
  117. index: 1
  118. value_name: GROUP_NAME
  119. help: The name of the group
  120. required: true
  121. - repo:
  122. index: 2
  123. value_name: REPO_NAME
  124. help: The name of the repo
  125. required: true
  126. - act:
  127. about: Add action to a group
  128. args:
  129. - name:
  130. index: 1
  131. value_name: GROUP_NAME
  132. help: The name of the group
  133. required: true
  134. - action:
  135. index: 2
  136. value_name: ACTION_NAME
  137. help: The name of the action
  138. required: true
  139. - remove:
  140. about: Remove a repo from a group
  141. args:
  142. - name:
  143. index: 1
  144. value_name: GROUP_NAME
  145. help: The name of the group
  146. required: true
  147. - repo:
  148. index: 2
  149. value_name: REPO_NAME
  150. help: The name of the repo
  151. required: true
  152. - drop:
  153. about: Remove a group
  154. args:
  155. - name:
  156. index: 1
  157. value_name: GROUP_NAME
  158. help: The name of the group
  159. required: true
  160. - show:
  161. about: Show information about a group
  162. args:
  163. - name:
  164. index: 1
  165. value_name: NAME
  166. help: The name of the group
  167. required: true
  168. - list:
  169. about: List known groups
  170. - type:
  171. about: Create and manage repository types
  172. settings:
  173. - SubcommandRequired
  174. subcommands:
  175. - create:
  176. about: Create a new repository type
  177. args:
  178. - name:
  179. index: 1
  180. value_name: NAME
  181. help: Name of the repository type
  182. required: true
  183. - description:
  184. long: description
  185. takes_value: true
  186. help: Description of the repository type
  187. - create:
  188. long: create
  189. takes_value: true
  190. help: Command to create a repository of type NAME
  191. - inward:
  192. long: inward
  193. takes_value: true
  194. help: Command to perform inward sync of a repository of type NAME
  195. - outward:
  196. long: outward
  197. takes_value: true
  198. help: Command to perform outward sync of a repository of type NAME
  199. - status:
  200. long: status
  201. takes_value: true
  202. help: Command to display status of repository
  203. - pre_inward:
  204. long: pre-inward
  205. takes_value: true
  206. help: Command describing potential pre-inward action
  207. - post_inward:
  208. long: post-inward
  209. takes_value: true
  210. help: Command describing post-inward action
  211. - post_outward:
  212. long: post-outward
  213. takes_value: true
  214. help: Command describing post-outward action
  215. - config:
  216. about: Configure a repository type
  217. args:
  218. - name:
  219. index: 1
  220. value_name: NAME
  221. help: Name of the repository type
  222. required: true
  223. - description:
  224. long: description
  225. takes_value: true
  226. help: Description of the repository type
  227. - create:
  228. long: create
  229. takes_value: true
  230. help: Command to create a repository of type NAME
  231. - inward:
  232. long: inward
  233. takes_value: true
  234. help: Command to perform inward sync of a repository of type NAME
  235. - outward:
  236. long: outward
  237. takes_value: true
  238. help: Command to perform outward sync of a repository of type NAME
  239. - status:
  240. long: status
  241. takes_value: true
  242. help: Command to display status of repository
  243. - pre_inward:
  244. long: pre-inward
  245. takes_value: true
  246. help: Command describing potential pre-inward action
  247. - post_inward:
  248. long: post-inward
  249. takes_value: true
  250. help: Command describing post-inward action
  251. - post_outward:
  252. long: post-outward
  253. takes_value: true
  254. help: Command describing post-outward action
  255. - show:
  256. about: Show information about a type
  257. args:
  258. - name:
  259. index: 1
  260. value_name: NAME
  261. help: The name of the repository type
  262. required: true
  263. - list:
  264. about: List known repository types
  265. - action:
  266. about: Create and manage actions
  267. settings:
  268. - SubcommandRequired
  269. subcommands:
  270. - create:
  271. about: Create a new action
  272. args:
  273. - name:
  274. index: 1
  275. value_name: NAME
  276. help: The name of the action
  277. required: true
  278. - command:
  279. index: 2
  280. value_name: COMMAND
  281. help: The command the action runs
  282. required: true
  283. - description:
  284. long: description
  285. value_name: DESCRIPTION
  286. help: Description of the action
  287. takes_value: true
  288. - config:
  289. about: Configure an action
  290. args:
  291. - name:
  292. index: 1
  293. value_name: NAME
  294. help: The name of the action
  295. required: true
  296. - disabled:
  297. long: disabled
  298. value_name: YES/NO
  299. help: Enable this action
  300. takes_value: true
  301. - command:
  302. long: command
  303. value_name: COMMAND
  304. help: The command the action runs
  305. takes_value: true
  306. required: true
  307. - description:
  308. long: description
  309. value_name: DESCRIPTION
  310. help: Description of the action
  311. takes_value: true
  312. - show:
  313. about: Show information about an action
  314. args:
  315. - name:
  316. index: 1
  317. value_name: NAME
  318. help: The name of the repository type
  319. required: true
  320. - list:
  321. about: List known actions