cli.yml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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. - command:
  264. about: Manage commands in a repo type
  265. settings:
  266. - SubcommandRequired
  267. subcommands:
  268. - add:
  269. about: Create a new command
  270. args:
  271. - type:
  272. index: 1
  273. value_name: REPO_TYPE
  274. help: Repository Type
  275. required: true
  276. - name:
  277. index: 2
  278. value_name: COMMAND_NAME
  279. help: Command Name
  280. required: true
  281. - command:
  282. index: 3
  283. value_name: COMMAND
  284. help: Command
  285. required: true
  286. - change:
  287. about: Change a command
  288. args:
  289. - type:
  290. index: 1
  291. value_name: REPO_TYPE
  292. help: Repository Type
  293. required: true
  294. - name:
  295. index: 2
  296. value_name: COMMAND_NAME
  297. help: Command Name
  298. required: true
  299. - command:
  300. index: 3
  301. value_name: COMMAND
  302. help: Command
  303. required: true
  304. - remove:
  305. about: Remove a command
  306. args:
  307. - type:
  308. index: 1
  309. value_name: REPO_TYPE
  310. help: Repository Type
  311. required: true
  312. - name:
  313. index: 2
  314. value_name: COMMAND_NAME
  315. help: Command Name
  316. required: true
  317. - show:
  318. about: Show information about a type
  319. args:
  320. - name:
  321. index: 1
  322. value_name: NAME
  323. help: The name of the repository type
  324. required: true
  325. - list:
  326. about: List known repository types
  327. - action:
  328. about: Create and manage actions
  329. settings:
  330. - SubcommandRequired
  331. subcommands:
  332. - create:
  333. about: Create a new action
  334. args:
  335. - name:
  336. index: 1
  337. value_name: NAME
  338. help: The name of the action
  339. required: true
  340. - command:
  341. index: 2
  342. value_name: COMMAND
  343. help: The command the action runs
  344. required: true
  345. - description:
  346. long: description
  347. value_name: DESCRIPTION
  348. help: Description of the action
  349. takes_value: true
  350. - config:
  351. about: Configure an action
  352. args:
  353. - name:
  354. index: 1
  355. value_name: NAME
  356. help: The name of the action
  357. required: true
  358. - disabled:
  359. long: disabled
  360. value_name: YES/NO
  361. help: Enable this action
  362. takes_value: true
  363. - command:
  364. long: command
  365. value_name: COMMAND
  366. help: The command the action runs
  367. takes_value: true
  368. required: true
  369. - description:
  370. long: description
  371. value_name: DESCRIPTION
  372. help: Description of the action
  373. takes_value: true
  374. - show:
  375. about: Show information about an action
  376. args:
  377. - name:
  378. index: 1
  379. value_name: NAME
  380. help: The name of the repository type
  381. required: true
  382. - list:
  383. about: List known actions