cli.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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. - remove:
  85. about: Remove a repository from the configuration
  86. args:
  87. - name:
  88. index: 1
  89. value_name: NAME
  90. help: The name of the repository
  91. required: true
  92. - show:
  93. about: Show information about a repository
  94. args:
  95. - name:
  96. index: 1
  97. value_name: NAME
  98. help: The name of the repository
  99. required: true
  100. - group:
  101. about: Create and manage groups of repositories
  102. settings:
  103. - SubcommandRequired
  104. subcommands:
  105. - create:
  106. about: Create 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. - delete:
  114. about: Delete 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. - add:
  122. about: Add a repo to a group
  123. args:
  124. - name:
  125. index: 1
  126. value_name: GROUP_NAME
  127. help: The name of the group
  128. required: true
  129. - repo:
  130. index: 2
  131. value_name: REPO_NAME
  132. help: The name of the repo
  133. required: true
  134. - act:
  135. about: Add action to a group
  136. args:
  137. - name:
  138. index: 1
  139. value_name: GROUP_NAME
  140. help: The name of the group
  141. required: true
  142. - action:
  143. index: 2
  144. value_name: ACTION_NAME
  145. help: The name of the action
  146. required: true
  147. - remove:
  148. about: Remove a repo from a group
  149. args:
  150. - name:
  151. index: 1
  152. value_name: GROUP_NAME
  153. help: The name of the group
  154. required: true
  155. - repo:
  156. index: 2
  157. value_name: REPO_NAME
  158. help: The name of the repo
  159. required: true
  160. - drop:
  161. about: Remove a group
  162. args:
  163. - name:
  164. index: 1
  165. value_name: GROUP_NAME
  166. help: The name of the group
  167. required: true
  168. - show:
  169. about: Show information about a group
  170. args:
  171. - name:
  172. index: 1
  173. value_name: NAME
  174. help: The name of the group
  175. required: true
  176. - list:
  177. about: List known groups
  178. - type:
  179. about: Create and manage repository types
  180. settings:
  181. - SubcommandRequired
  182. subcommands:
  183. - create:
  184. about: Create a new repository type
  185. args:
  186. - name:
  187. index: 1
  188. value_name: NAME
  189. help: Name of the repository type
  190. required: true
  191. - description:
  192. long: description
  193. takes_value: true
  194. help: Description of the repository type
  195. - create:
  196. long: create
  197. takes_value: true
  198. help: Command to create a repository of type NAME
  199. - inward:
  200. long: inward
  201. takes_value: true
  202. help: Command to perform inward sync of a repository of type NAME
  203. - outward:
  204. long: outward
  205. takes_value: true
  206. help: Command to perform outward sync of a repository of type NAME
  207. - status:
  208. long: status
  209. takes_value: true
  210. help: Command to display status of repository
  211. - pre_inward:
  212. long: pre-inward
  213. takes_value: true
  214. help: Command describing potential pre-inward action
  215. - post_inward:
  216. long: post-inward
  217. takes_value: true
  218. help: Command describing post-inward action
  219. - post_outward:
  220. long: post-outward
  221. takes_value: true
  222. help: Command describing post-outward action
  223. - config:
  224. about: Configure a repository type
  225. args:
  226. - name:
  227. index: 1
  228. value_name: NAME
  229. help: Name of the repository type
  230. required: true
  231. - description:
  232. long: description
  233. takes_value: true
  234. help: Description of the repository type
  235. - create:
  236. long: create
  237. takes_value: true
  238. help: Command to create a repository of type NAME
  239. - inward:
  240. long: inward
  241. takes_value: true
  242. help: Command to perform inward sync of a repository of type NAME
  243. - outward:
  244. long: outward
  245. takes_value: true
  246. help: Command to perform outward sync of a repository of type NAME
  247. - status:
  248. long: status
  249. takes_value: true
  250. help: Command to display status of repository
  251. - pre_inward:
  252. long: pre-inward
  253. takes_value: true
  254. help: Command describing potential pre-inward action
  255. - post_inward:
  256. long: post-inward
  257. takes_value: true
  258. help: Command describing post-inward action
  259. - post_outward:
  260. long: post-outward
  261. takes_value: true
  262. help: Command describing post-outward action
  263. - show:
  264. about: Show information about a type
  265. args:
  266. - name:
  267. index: 1
  268. value_name: NAME
  269. help: The name of the repository type
  270. required: true
  271. - list:
  272. about: List known repository types
  273. - action:
  274. about: Create and manage actions
  275. settings:
  276. - SubcommandRequired
  277. subcommands:
  278. - create:
  279. about: Create a new action
  280. args:
  281. - name:
  282. index: 1
  283. value_name: NAME
  284. help: The name of the action
  285. required: true
  286. - command:
  287. index: 2
  288. value_name: COMMAND
  289. help: The command the action runs
  290. required: true
  291. - description:
  292. long: description
  293. value_name: DESCRIPTION
  294. help: Description of the action
  295. takes_value: true
  296. - config:
  297. about: Configure an action
  298. args:
  299. - name:
  300. index: 1
  301. value_name: NAME
  302. help: The name of the action
  303. required: true
  304. - disabled:
  305. long: disabled
  306. value_name: YES/NO
  307. help: Enable this action
  308. takes_value: true
  309. - command:
  310. long: command
  311. value_name: COMMAND
  312. help: The command the action runs
  313. takes_value: true
  314. required: true
  315. - description:
  316. long: description
  317. value_name: DESCRIPTION
  318. help: Description of the action
  319. takes_value: true
  320. - show:
  321. about: Show information about an action
  322. args:
  323. - name:
  324. index: 1
  325. value_name: NAME
  326. help: The name of the repository type
  327. required: true
  328. - list:
  329. about: List known actions