@rockcarver/frodo-cli 2.0.0-57 → 2.0.0-59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/esm/cli/FrodoCommand.js +9 -1
  3. package/esm/cli/FrodoCommand.js.map +1 -1
  4. package/esm/cli/_template/something-delete.js +14 -12
  5. package/esm/cli/_template/something-delete.js.map +1 -1
  6. package/esm/cli/_template/something-describe.js +14 -12
  7. package/esm/cli/_template/something-describe.js.map +1 -1
  8. package/esm/cli/_template/something-else-delete.js +14 -12
  9. package/esm/cli/_template/something-else-delete.js.map +1 -1
  10. package/esm/cli/_template/something-else-describe.js +14 -12
  11. package/esm/cli/_template/something-else-describe.js.map +1 -1
  12. package/esm/cli/_template/something-else-export.js +14 -12
  13. package/esm/cli/_template/something-else-export.js.map +1 -1
  14. package/esm/cli/_template/something-else-import.js +14 -12
  15. package/esm/cli/_template/something-else-import.js.map +1 -1
  16. package/esm/cli/_template/something-else-list.js +14 -12
  17. package/esm/cli/_template/something-else-list.js.map +1 -1
  18. package/esm/cli/_template/something-else.js +15 -8
  19. package/esm/cli/_template/something-else.js.map +1 -1
  20. package/esm/cli/_template/something-export.js +14 -12
  21. package/esm/cli/_template/something-export.js.map +1 -1
  22. package/esm/cli/_template/something-import.js +14 -12
  23. package/esm/cli/_template/something-import.js.map +1 -1
  24. package/esm/cli/_template/something-list.js +14 -12
  25. package/esm/cli/_template/something-list.js.map +1 -1
  26. package/esm/cli/_template/something-other-delete.js +14 -12
  27. package/esm/cli/_template/something-other-delete.js.map +1 -1
  28. package/esm/cli/_template/something-other-describe.js +14 -12
  29. package/esm/cli/_template/something-other-describe.js.map +1 -1
  30. package/esm/cli/_template/something-other-export.js +14 -12
  31. package/esm/cli/_template/something-other-export.js.map +1 -1
  32. package/esm/cli/_template/something-other-import.js +14 -12
  33. package/esm/cli/_template/something-other-import.js.map +1 -1
  34. package/esm/cli/_template/something-other-list.js +14 -12
  35. package/esm/cli/_template/something-other-list.js.map +1 -1
  36. package/esm/cli/_template/something-other.js +15 -8
  37. package/esm/cli/_template/something-other.js.map +1 -1
  38. package/esm/cli/_template/something.js +15 -11
  39. package/esm/cli/_template/something.js.map +1 -1
  40. package/esm/cli/admin/admin-add-autoid-static-user-mapping.js +16 -14
  41. package/esm/cli/admin/admin-add-autoid-static-user-mapping.js.map +1 -1
  42. package/esm/cli/admin/admin-create-oauth2-client-with-admin-privileges.js +62 -60
  43. package/esm/cli/admin/admin-create-oauth2-client-with-admin-privileges.js.map +1 -1
  44. package/esm/cli/admin/admin-execute-rfc7523-authz-grant-flow.js +27 -25
  45. package/esm/cli/admin/admin-execute-rfc7523-authz-grant-flow.js.map +1 -1
  46. package/esm/cli/admin/admin-federation-export.js +34 -32
  47. package/esm/cli/admin/admin-federation-export.js.map +1 -1
  48. package/esm/cli/admin/admin-federation-import.js +39 -37
  49. package/esm/cli/admin/admin-federation-import.js.map +1 -1
  50. package/esm/cli/admin/admin-federation-list.js +20 -18
  51. package/esm/cli/admin/admin-federation-list.js.map +1 -1
  52. package/esm/cli/admin/admin-federation.js +16 -8
  53. package/esm/cli/admin/admin-federation.js.map +1 -1
  54. package/esm/cli/admin/admin-generate-rfc7523-authz-grant-artefacts.js +29 -27
  55. package/esm/cli/admin/admin-generate-rfc7523-authz-grant-artefacts.js.map +1 -1
  56. package/esm/cli/admin/admin-get-access-token.js +16 -14
  57. package/esm/cli/admin/admin-get-access-token.js.map +1 -1
  58. package/esm/cli/admin/admin-grant-oauth2-client-admin-privileges.js +16 -14
  59. package/esm/cli/admin/admin-grant-oauth2-client-admin-privileges.js.map +1 -1
  60. package/esm/cli/admin/admin-hide-generic-extension-attributes.js +16 -14
  61. package/esm/cli/admin/admin-hide-generic-extension-attributes.js.map +1 -1
  62. package/esm/cli/admin/admin-list-oauth2-clients-with-admin-privileges.js +16 -14
  63. package/esm/cli/admin/admin-list-oauth2-clients-with-admin-privileges.js.map +1 -1
  64. package/esm/cli/admin/admin-list-oauth2-clients-with-custom-privileges.js +16 -14
  65. package/esm/cli/admin/admin-list-oauth2-clients-with-custom-privileges.js.map +1 -1
  66. package/esm/cli/admin/admin-list-static-user-mappings.js +16 -14
  67. package/esm/cli/admin/admin-list-static-user-mappings.js.map +1 -1
  68. package/esm/cli/admin/admin-remove-static-user-mapping.js +16 -14
  69. package/esm/cli/admin/admin-remove-static-user-mapping.js.map +1 -1
  70. package/esm/cli/admin/admin-repair-org-model.js +16 -14
  71. package/esm/cli/admin/admin-repair-org-model.js.map +1 -1
  72. package/esm/cli/admin/admin-revoke-oauth2-client-admin-privileges.js +16 -14
  73. package/esm/cli/admin/admin-revoke-oauth2-client-admin-privileges.js.map +1 -1
  74. package/esm/cli/admin/admin-show-generic-extension-attributes.js +16 -14
  75. package/esm/cli/admin/admin-show-generic-extension-attributes.js.map +1 -1
  76. package/esm/cli/admin/admin-train-auto-access-model.js +19 -17
  77. package/esm/cli/admin/admin-train-auto-access-model.js.map +1 -1
  78. package/esm/cli/admin/admin.js +34 -20
  79. package/esm/cli/admin/admin.js.map +1 -1
  80. package/esm/cli/agent/agent-delete.js +28 -26
  81. package/esm/cli/agent/agent-delete.js.map +1 -1
  82. package/esm/cli/agent/agent-describe.js +14 -12
  83. package/esm/cli/agent/agent-describe.js.map +1 -1
  84. package/esm/cli/agent/agent-export.js +34 -32
  85. package/esm/cli/agent/agent-export.js.map +1 -1
  86. package/esm/cli/agent/agent-gateway-delete.js +28 -26
  87. package/esm/cli/agent/agent-gateway-delete.js.map +1 -1
  88. package/esm/cli/agent/agent-gateway-describe.js +14 -12
  89. package/esm/cli/agent/agent-gateway-describe.js.map +1 -1
  90. package/esm/cli/agent/agent-gateway-export.js +34 -32
  91. package/esm/cli/agent/agent-gateway-export.js.map +1 -1
  92. package/esm/cli/agent/agent-gateway-import.js +40 -38
  93. package/esm/cli/agent/agent-gateway-import.js.map +1 -1
  94. package/esm/cli/agent/agent-gateway-list.js +15 -13
  95. package/esm/cli/agent/agent-gateway-list.js.map +1 -1
  96. package/esm/cli/agent/agent-gateway.js +15 -8
  97. package/esm/cli/agent/agent-gateway.js.map +1 -1
  98. package/esm/cli/agent/agent-import.js +40 -38
  99. package/esm/cli/agent/agent-import.js.map +1 -1
  100. package/esm/cli/agent/agent-java-delete.js +28 -26
  101. package/esm/cli/agent/agent-java-delete.js.map +1 -1
  102. package/esm/cli/agent/agent-java-describe.js +14 -12
  103. package/esm/cli/agent/agent-java-describe.js.map +1 -1
  104. package/esm/cli/agent/agent-java-export.js +34 -32
  105. package/esm/cli/agent/agent-java-export.js.map +1 -1
  106. package/esm/cli/agent/agent-java-import.js +40 -38
  107. package/esm/cli/agent/agent-java-import.js.map +1 -1
  108. package/esm/cli/agent/agent-java-list.js +15 -13
  109. package/esm/cli/agent/agent-java-list.js.map +1 -1
  110. package/esm/cli/agent/agent-java.js +15 -8
  111. package/esm/cli/agent/agent-java.js.map +1 -1
  112. package/esm/cli/agent/agent-list.js +15 -13
  113. package/esm/cli/agent/agent-list.js.map +1 -1
  114. package/esm/cli/agent/agent-web-delete.js +28 -26
  115. package/esm/cli/agent/agent-web-delete.js.map +1 -1
  116. package/esm/cli/agent/agent-web-describe.js +14 -12
  117. package/esm/cli/agent/agent-web-describe.js.map +1 -1
  118. package/esm/cli/agent/agent-web-export.js +34 -32
  119. package/esm/cli/agent/agent-web-export.js.map +1 -1
  120. package/esm/cli/agent/agent-web-import.js +40 -38
  121. package/esm/cli/agent/agent-web-import.js.map +1 -1
  122. package/esm/cli/agent/agent-web-list.js +15 -13
  123. package/esm/cli/agent/agent-web-list.js.map +1 -1
  124. package/esm/cli/agent/agent-web.js +15 -8
  125. package/esm/cli/agent/agent-web.js.map +1 -1
  126. package/esm/cli/agent/agent.js +17 -12
  127. package/esm/cli/agent/agent.js.map +1 -1
  128. package/esm/cli/app/app-delete.js +27 -25
  129. package/esm/cli/app/app-delete.js.map +1 -1
  130. package/esm/cli/app/app-describe.js +14 -12
  131. package/esm/cli/app/app-describe.js.map +1 -1
  132. package/esm/cli/app/app-export.js +42 -40
  133. package/esm/cli/app/app-export.js.map +1 -1
  134. package/esm/cli/app/app-import.js +47 -45
  135. package/esm/cli/app/app-import.js.map +1 -1
  136. package/esm/cli/app/app-list.js +16 -14
  137. package/esm/cli/app/app-list.js.map +1 -1
  138. package/esm/cli/app/app.js +11 -10
  139. package/esm/cli/app/app.js.map +1 -1
  140. package/esm/cli/authn/authn-describe.js +20 -18
  141. package/esm/cli/authn/authn-describe.js.map +1 -1
  142. package/esm/cli/authn/authn-export.js +16 -14
  143. package/esm/cli/authn/authn-export.js.map +1 -1
  144. package/esm/cli/authn/authn-import.js +16 -14
  145. package/esm/cli/authn/authn-import.js.map +1 -1
  146. package/esm/cli/authn/authn.js +7 -7
  147. package/esm/cli/authn/authn.js.map +1 -1
  148. package/esm/cli/authz/authz-policy-delete.js +33 -31
  149. package/esm/cli/authz/authz-policy-delete.js.map +1 -1
  150. package/esm/cli/authz/authz-policy-describe.js +20 -18
  151. package/esm/cli/authz/authz-policy-describe.js.map +1 -1
  152. package/esm/cli/authz/authz-policy-export.js +65 -63
  153. package/esm/cli/authz/authz-policy-export.js.map +1 -1
  154. package/esm/cli/authz/authz-policy-import.js +55 -53
  155. package/esm/cli/authz/authz-policy-import.js.map +1 -1
  156. package/esm/cli/authz/authz-policy-list.js +27 -25
  157. package/esm/cli/authz/authz-policy-list.js.map +1 -1
  158. package/esm/cli/authz/authz-policy.js +15 -8
  159. package/esm/cli/authz/authz-policy.js.map +1 -1
  160. package/esm/cli/authz/authz-set-delete.js +27 -25
  161. package/esm/cli/authz/authz-set-delete.js.map +1 -1
  162. package/esm/cli/authz/authz-set-describe.js +20 -18
  163. package/esm/cli/authz/authz-set-describe.js.map +1 -1
  164. package/esm/cli/authz/authz-set-export.js +45 -43
  165. package/esm/cli/authz/authz-set-export.js.map +1 -1
  166. package/esm/cli/authz/authz-set-import.js +51 -49
  167. package/esm/cli/authz/authz-set-import.js.map +1 -1
  168. package/esm/cli/authz/authz-set-list.js +16 -14
  169. package/esm/cli/authz/authz-set-list.js.map +1 -1
  170. package/esm/cli/authz/authz-set.js +15 -8
  171. package/esm/cli/authz/authz-set.js.map +1 -1
  172. package/esm/cli/authz/authz-type-delete.js +33 -31
  173. package/esm/cli/authz/authz-type-delete.js.map +1 -1
  174. package/esm/cli/authz/authz-type-describe.js +24 -22
  175. package/esm/cli/authz/authz-type-describe.js.map +1 -1
  176. package/esm/cli/authz/authz-type-export.js +39 -37
  177. package/esm/cli/authz/authz-type-export.js.map +1 -1
  178. package/esm/cli/authz/authz-type-import.js +45 -43
  179. package/esm/cli/authz/authz-type-import.js.map +1 -1
  180. package/esm/cli/authz/authz-type-list.js +16 -14
  181. package/esm/cli/authz/authz-type-list.js.map +1 -1
  182. package/esm/cli/authz/authz-type.js +15 -8
  183. package/esm/cli/authz/authz-type.js.map +1 -1
  184. package/esm/cli/authz/authz.js +7 -7
  185. package/esm/cli/authz/authz.js.map +1 -1
  186. package/esm/cli/config/config-delete.js +14 -12
  187. package/esm/cli/config/config-delete.js.map +1 -1
  188. package/esm/cli/config/config-describe.js +14 -12
  189. package/esm/cli/config/config-describe.js.map +1 -1
  190. package/esm/cli/config/config-export.js +43 -41
  191. package/esm/cli/config/config-export.js.map +1 -1
  192. package/esm/cli/config/config-import.js +53 -51
  193. package/esm/cli/config/config-import.js.map +1 -1
  194. package/esm/cli/config/config-list.js +14 -12
  195. package/esm/cli/config/config-list.js.map +1 -1
  196. package/esm/cli/config/config.js +12 -9
  197. package/esm/cli/config/config.js.map +1 -1
  198. package/esm/cli/conn/conn-delete.js +15 -13
  199. package/esm/cli/conn/conn-delete.js.map +1 -1
  200. package/esm/cli/conn/conn-describe.js +11 -9
  201. package/esm/cli/conn/conn-describe.js.map +1 -1
  202. package/esm/cli/conn/conn-list.js +11 -9
  203. package/esm/cli/conn/conn-list.js.map +1 -1
  204. package/esm/cli/conn/conn-save.js +77 -75
  205. package/esm/cli/conn/conn-save.js.map +1 -1
  206. package/esm/cli/conn/conn.js +9 -8
  207. package/esm/cli/conn/conn.js.map +1 -1
  208. package/esm/cli/email/email-template-export.js +33 -31
  209. package/esm/cli/email/email-template-export.js.map +1 -1
  210. package/esm/cli/email/email-template-import.js +39 -37
  211. package/esm/cli/email/email-template-import.js.map +1 -1
  212. package/esm/cli/email/email-template-list.js +16 -14
  213. package/esm/cli/email/email-template-list.js.map +1 -1
  214. package/esm/cli/email/email-template.js +11 -6
  215. package/esm/cli/email/email-template.js.map +1 -1
  216. package/esm/cli/email/email.js +3 -5
  217. package/esm/cli/email/email.js.map +1 -1
  218. package/esm/cli/esv/esv-apply.js +39 -37
  219. package/esm/cli/esv/esv-apply.js.map +1 -1
  220. package/esm/cli/esv/esv-secret-create.js +19 -17
  221. package/esm/cli/esv/esv-secret-create.js.map +1 -1
  222. package/esm/cli/esv/esv-secret-delete.js +26 -24
  223. package/esm/cli/esv/esv-secret-delete.js.map +1 -1
  224. package/esm/cli/esv/esv-secret-describe.js +16 -14
  225. package/esm/cli/esv/esv-secret-describe.js.map +1 -1
  226. package/esm/cli/esv/esv-secret-export.js +25 -23
  227. package/esm/cli/esv/esv-secret-export.js.map +1 -1
  228. package/esm/cli/esv/esv-secret-import.js +14 -12
  229. package/esm/cli/esv/esv-secret-import.js.map +1 -1
  230. package/esm/cli/esv/esv-secret-list.js +16 -14
  231. package/esm/cli/esv/esv-secret-list.js.map +1 -1
  232. package/esm/cli/esv/esv-secret-set.js +16 -14
  233. package/esm/cli/esv/esv-secret-set.js.map +1 -1
  234. package/esm/cli/esv/esv-secret-version-activate.js +20 -18
  235. package/esm/cli/esv/esv-secret-version-activate.js.map +1 -1
  236. package/esm/cli/esv/esv-secret-version-create.js +19 -17
  237. package/esm/cli/esv/esv-secret-version-create.js.map +1 -1
  238. package/esm/cli/esv/esv-secret-version-deactivate.js +20 -18
  239. package/esm/cli/esv/esv-secret-version-deactivate.js.map +1 -1
  240. package/esm/cli/esv/esv-secret-version-delete.js +26 -24
  241. package/esm/cli/esv/esv-secret-version-delete.js.map +1 -1
  242. package/esm/cli/esv/esv-secret-version-list.js +16 -14
  243. package/esm/cli/esv/esv-secret-version-list.js.map +1 -1
  244. package/esm/cli/esv/esv-secret-version.js +15 -8
  245. package/esm/cli/esv/esv-secret-version.js.map +1 -1
  246. package/esm/cli/esv/esv-secret.js +21 -11
  247. package/esm/cli/esv/esv-secret.js.map +1 -1
  248. package/esm/cli/esv/esv-variable-create.js +16 -14
  249. package/esm/cli/esv/esv-variable-create.js.map +1 -1
  250. package/esm/cli/esv/esv-variable-delete.js +27 -25
  251. package/esm/cli/esv/esv-variable-delete.js.map +1 -1
  252. package/esm/cli/esv/esv-variable-describe.js +16 -14
  253. package/esm/cli/esv/esv-variable-describe.js.map +1 -1
  254. package/esm/cli/esv/esv-variable-export.js +26 -24
  255. package/esm/cli/esv/esv-variable-export.js.map +1 -1
  256. package/esm/cli/esv/esv-variable-import.js +14 -12
  257. package/esm/cli/esv/esv-variable-import.js.map +1 -1
  258. package/esm/cli/esv/esv-variable-list.js +16 -14
  259. package/esm/cli/esv/esv-variable-list.js.map +1 -1
  260. package/esm/cli/esv/esv-variable-set.js +24 -22
  261. package/esm/cli/esv/esv-variable-set.js.map +1 -1
  262. package/esm/cli/esv/esv-variable.js +19 -10
  263. package/esm/cli/esv/esv-variable.js.map +1 -1
  264. package/esm/cli/esv/esv.js +7 -7
  265. package/esm/cli/esv/esv.js.map +1 -1
  266. package/esm/cli/idm/idm-count.js +16 -14
  267. package/esm/cli/idm/idm-count.js.map +1 -1
  268. package/esm/cli/idm/idm-export.js +41 -39
  269. package/esm/cli/idm/idm-export.js.map +1 -1
  270. package/esm/cli/idm/idm-import.js +45 -43
  271. package/esm/cli/idm/idm-import.js.map +1 -1
  272. package/esm/cli/idm/idm-list.js +21 -19
  273. package/esm/cli/idm/idm-list.js.map +1 -1
  274. package/esm/cli/idm/idm.js +9 -8
  275. package/esm/cli/idm/idm.js.map +1 -1
  276. package/esm/cli/idp/idp-export.js +34 -32
  277. package/esm/cli/idp/idp-export.js.map +1 -1
  278. package/esm/cli/idp/idp-import.js +47 -45
  279. package/esm/cli/idp/idp-import.js.map +1 -1
  280. package/esm/cli/idp/idp-list.js +20 -18
  281. package/esm/cli/idp/idp-list.js.map +1 -1
  282. package/esm/cli/idp/idp.js +7 -7
  283. package/esm/cli/idp/idp.js.map +1 -1
  284. package/esm/cli/journey/journey-delete.js +27 -25
  285. package/esm/cli/journey/journey-delete.js.map +1 -1
  286. package/esm/cli/journey/journey-describe.js +92 -90
  287. package/esm/cli/journey/journey-describe.js.map +1 -1
  288. package/esm/cli/journey/journey-disable.js +27 -25
  289. package/esm/cli/journey/journey-disable.js.map +1 -1
  290. package/esm/cli/journey/journey-enable.js +27 -25
  291. package/esm/cli/journey/journey-enable.js.map +1 -1
  292. package/esm/cli/journey/journey-export.js +55 -53
  293. package/esm/cli/journey/journey-export.js.map +1 -1
  294. package/esm/cli/journey/journey-import.js +51 -49
  295. package/esm/cli/journey/journey-import.js.map +1 -1
  296. package/esm/cli/journey/journey-list.js +16 -14
  297. package/esm/cli/journey/journey-list.js.map +1 -1
  298. package/esm/cli/journey/journey-prune.js +26 -24
  299. package/esm/cli/journey/journey-prune.js.map +1 -1
  300. package/esm/cli/journey/journey.js +17 -12
  301. package/esm/cli/journey/journey.js.map +1 -1
  302. package/esm/cli/log/log-fetch.js +98 -96
  303. package/esm/cli/log/log-fetch.js.map +1 -1
  304. package/esm/cli/log/log-key-delete.js +25 -23
  305. package/esm/cli/log/log-key-delete.js.map +1 -1
  306. package/esm/cli/log/log-key-describe.js +14 -12
  307. package/esm/cli/log/log-key-describe.js.map +1 -1
  308. package/esm/cli/log/log-key-list.js +16 -14
  309. package/esm/cli/log/log-key-list.js.map +1 -1
  310. package/esm/cli/log/log-key.js +11 -6
  311. package/esm/cli/log/log-key.js.map +1 -1
  312. package/esm/cli/log/log-list.js +70 -68
  313. package/esm/cli/log/log-list.js.map +1 -1
  314. package/esm/cli/log/log-tail.js +60 -58
  315. package/esm/cli/log/log-tail.js.map +1 -1
  316. package/esm/cli/log/log.js +9 -8
  317. package/esm/cli/log/log.js.map +1 -1
  318. package/esm/cli/oauth/oauth-client-delete.js +14 -12
  319. package/esm/cli/oauth/oauth-client-delete.js.map +1 -1
  320. package/esm/cli/oauth/oauth-client-describe.js +14 -12
  321. package/esm/cli/oauth/oauth-client-describe.js.map +1 -1
  322. package/esm/cli/oauth/oauth-client-export.js +42 -40
  323. package/esm/cli/oauth/oauth-client-export.js.map +1 -1
  324. package/esm/cli/oauth/oauth-client-import.js +47 -45
  325. package/esm/cli/oauth/oauth-client-import.js.map +1 -1
  326. package/esm/cli/oauth/oauth-client-list.js +16 -14
  327. package/esm/cli/oauth/oauth-client-list.js.map +1 -1
  328. package/esm/cli/oauth/oauth-client.js +16 -8
  329. package/esm/cli/oauth/oauth-client.js.map +1 -1
  330. package/esm/cli/oauth/oauth.js +4 -6
  331. package/esm/cli/oauth/oauth.js.map +1 -1
  332. package/esm/cli/realm/realm-add-custom-domain.js +15 -13
  333. package/esm/cli/realm/realm-add-custom-domain.js.map +1 -1
  334. package/esm/cli/realm/realm-describe.js +15 -13
  335. package/esm/cli/realm/realm-describe.js.map +1 -1
  336. package/esm/cli/realm/realm-list.js +15 -13
  337. package/esm/cli/realm/realm-list.js.map +1 -1
  338. package/esm/cli/realm/realm-remove-custom-domain.js +15 -13
  339. package/esm/cli/realm/realm-remove-custom-domain.js.map +1 -1
  340. package/esm/cli/realm/realm.js +13 -10
  341. package/esm/cli/realm/realm.js.map +1 -1
  342. package/esm/cli/saml/saml-cot-export.js +33 -31
  343. package/esm/cli/saml/saml-cot-export.js.map +1 -1
  344. package/esm/cli/saml/saml-cot-import.js +39 -37
  345. package/esm/cli/saml/saml-cot-import.js.map +1 -1
  346. package/esm/cli/saml/saml-cot-list.js +16 -14
  347. package/esm/cli/saml/saml-cot-list.js.map +1 -1
  348. package/esm/cli/saml/saml-cot.js +11 -6
  349. package/esm/cli/saml/saml-cot.js.map +1 -1
  350. package/esm/cli/saml/saml-delete.js +25 -23
  351. package/esm/cli/saml/saml-delete.js.map +1 -1
  352. package/esm/cli/saml/saml-describe.js +16 -14
  353. package/esm/cli/saml/saml-describe.js.map +1 -1
  354. package/esm/cli/saml/saml-export.js +39 -37
  355. package/esm/cli/saml/saml-export.js.map +1 -1
  356. package/esm/cli/saml/saml-import.js +47 -45
  357. package/esm/cli/saml/saml-import.js.map +1 -1
  358. package/esm/cli/saml/saml-list.js +16 -14
  359. package/esm/cli/saml/saml-list.js.map +1 -1
  360. package/esm/cli/saml/saml-metadata-export.js +33 -31
  361. package/esm/cli/saml/saml-metadata-export.js.map +1 -1
  362. package/esm/cli/saml/saml-metadata.js +7 -4
  363. package/esm/cli/saml/saml-metadata.js.map +1 -1
  364. package/esm/cli/saml/saml.js +15 -11
  365. package/esm/cli/saml/saml.js.map +1 -1
  366. package/esm/cli/script/script-delete.js +28 -27
  367. package/esm/cli/script/script-delete.js.map +1 -1
  368. package/esm/cli/script/script-describe.js +14 -12
  369. package/esm/cli/script/script-describe.js.map +1 -1
  370. package/esm/cli/script/script-export.js +43 -41
  371. package/esm/cli/script/script-export.js.map +1 -1
  372. package/esm/cli/script/script-import.js +32 -30
  373. package/esm/cli/script/script-import.js.map +1 -1
  374. package/esm/cli/script/script-list.js +16 -14
  375. package/esm/cli/script/script-list.js.map +1 -1
  376. package/esm/cli/script/script.js +11 -9
  377. package/esm/cli/script/script.js.map +1 -1
  378. package/esm/cli/service/service-delete.js +18 -16
  379. package/esm/cli/service/service-delete.js.map +1 -1
  380. package/esm/cli/service/service-export.js +32 -30
  381. package/esm/cli/service/service-export.js.map +1 -1
  382. package/esm/cli/service/service-import.js +56 -54
  383. package/esm/cli/service/service-import.js.map +1 -1
  384. package/esm/cli/service/service-list.js +14 -12
  385. package/esm/cli/service/service-list.js.map +1 -1
  386. package/esm/cli/service/service.js +9 -8
  387. package/esm/cli/service/service.js.map +1 -1
  388. package/esm/cli/theme/theme-delete.js +33 -31
  389. package/esm/cli/theme/theme-delete.js.map +1 -1
  390. package/esm/cli/theme/theme-export.js +39 -37
  391. package/esm/cli/theme/theme-export.js.map +1 -1
  392. package/esm/cli/theme/theme-import.js +45 -43
  393. package/esm/cli/theme/theme-import.js.map +1 -1
  394. package/esm/cli/theme/theme-list.js +16 -14
  395. package/esm/cli/theme/theme-list.js.map +1 -1
  396. package/esm/cli/theme/theme.js +9 -8
  397. package/esm/cli/theme/theme.js.map +1 -1
  398. package/package.json +2 -2
@@ -3,20 +3,22 @@ import { getTokens } from '../../ops/AuthenticateOps';
3
3
  import { createVariable } from '../../ops/cloud/VariablesOps';
4
4
  import { verboseMessage } from '../../utils/Console.js';
5
5
  import { FrodoCommand } from '../FrodoCommand';
6
- const program = new FrodoCommand('frodo esv variable create');
7
- program.description('Create variables.').requiredOption('-i, --variable-id <variable-id>', 'Variable id.').requiredOption('--value <value>', 'Variable value.').option('--description [description]', 'Variable description.').option('--variable-type [variable-type]', 'Variable type. Must be one of "string", "list", "array", "object", "bool", "int", or "number".', 'string').addHelpText('after', `Usage Examples:\n` + ` Create an ESV variable using implied default type "string":\n` + ` $ frodo esv variable create --variable-id "esv-trinity-phone" --value "(312)-555-0690" --description "Trinity's phone number." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "array":\n` + ` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew" --variable-type array --value '["Morpheus","Trinity","Link","Tank","Dozer","Apoc","Cypher","Mouse","Neo","Switch"]' --description "The crew of the Nebuchadnezzar hovercraft." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "object":\n` + ` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew-structure" --variable-type object --value '{"Captain":"Morpheus","FirstMate":"Trinity","Operator":["Link","Tank"],"Medic":"Dozer","Crewmen":["Apoc","Cypher","Mouse","Neo","Switch"]}' --description "The structure of the crew of the Nebuchadnezzar hovercraft." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "int":\n` + ` $ frodo esv variable create --variable-id "esv-neo-age" --variable-type int --value '28' --description "Neo's age in the matrix." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "bool":\n` + ` $ frodo esv variable create --variable-id "esv-blue-piller" --variable-type bool --value 'false' --description "Zion membership criteria." ${s.connId}\n`['brightCyan']).action(
8
- // implement command logic inside action handler
9
- async (host, realm, user, password, options, command) => {
10
- command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
11
- if (await getTokens()) {
12
- verboseMessage('Creating variable...');
13
- const outcome = await createVariable(options.variableId, options.value, options.description, options.variableType);
14
- if (!outcome) process.exitCode = 1;
15
- } else {
16
- process.exitCode = 1;
6
+ export default function setup() {
7
+ const program = new FrodoCommand('frodo esv variable create');
8
+ program.description('Create variables.').requiredOption('-i, --variable-id <variable-id>', 'Variable id.').requiredOption('--value <value>', 'Variable value.').option('--description [description]', 'Variable description.').option('--variable-type [variable-type]', 'Variable type. Must be one of "string", "list", "array", "object", "bool", "int", or "number".', 'string').addHelpText('after', `Usage Examples:\n` + ` Create an ESV variable using implied default type "string":\n` + ` $ frodo esv variable create --variable-id "esv-trinity-phone" --value "(312)-555-0690" --description "Trinity's phone number." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "array":\n` + ` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew" --variable-type array --value '["Morpheus","Trinity","Link","Tank","Dozer","Apoc","Cypher","Mouse","Neo","Switch"]' --description "The crew of the Nebuchadnezzar hovercraft." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "object":\n` + ` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew-structure" --variable-type object --value '{"Captain":"Morpheus","FirstMate":"Trinity","Operator":["Link","Tank"],"Medic":"Dozer","Crewmen":["Apoc","Cypher","Mouse","Neo","Switch"]}' --description "The structure of the crew of the Nebuchadnezzar hovercraft." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "int":\n` + ` $ frodo esv variable create --variable-id "esv-neo-age" --variable-type int --value '28' --description "Neo's age in the matrix." ${s.connId}\n`['brightCyan'] + ` Create an ESV variable of type "bool":\n` + ` $ frodo esv variable create --variable-id "esv-blue-piller" --variable-type bool --value 'false' --description "Zion membership criteria." ${s.connId}\n`['brightCyan']).action(
9
+ // implement command logic inside action handler
10
+ async (host, realm, user, password, options, command) => {
11
+ command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
12
+ if (await getTokens()) {
13
+ verboseMessage('Creating variable...');
14
+ const outcome = await createVariable(options.variableId, options.value, options.description, options.variableType);
15
+ if (!outcome) process.exitCode = 1;
16
+ } else {
17
+ process.exitCode = 1;
18
+ }
17
19
  }
20
+ // end command logic inside action handler
21
+ );
22
+ return program;
18
23
  }
19
- // end command logic inside action handler
20
- );
21
- program.parse();
22
24
  //# sourceMappingURL=esv-variable-create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"esv-variable-create.js","names":["s","getTokens","createVariable","verboseMessage","FrodoCommand","program","description","requiredOption","option","addHelpText","connId","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","outcome","variableId","value","variableType","process","exitCode","parse"],"sources":["../../../src/cli/esv/esv-variable-create.ts"],"sourcesContent":["import * as s from '../../help/SampleData';\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { createVariable } from '../../ops/cloud/VariablesOps';\nimport { verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nconst program = new FrodoCommand('frodo esv variable create');\n\nprogram\n .description('Create variables.')\n .requiredOption('-i, --variable-id <variable-id>', 'Variable id.')\n .requiredOption('--value <value>', 'Variable value.')\n .option('--description [description]', 'Variable description.')\n .option(\n '--variable-type [variable-type]',\n 'Variable type. Must be one of \"string\", \"list\", \"array\", \"object\", \"bool\", \"int\", or \"number\".',\n 'string'\n )\n .addHelpText(\n 'after',\n `Usage Examples:\\n` +\n ` Create an ESV variable using implied default type \"string\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-trinity-phone\" --value \"(312)-555-0690\" --description \"Trinity's phone number.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"array\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-nebuchadnezzar-crew\" --variable-type array --value '[\"Morpheus\",\"Trinity\",\"Link\",\"Tank\",\"Dozer\",\"Apoc\",\"Cypher\",\"Mouse\",\"Neo\",\"Switch\"]' --description \"The crew of the Nebuchadnezzar hovercraft.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"object\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-nebuchadnezzar-crew-structure\" --variable-type object --value '{\"Captain\":\"Morpheus\",\"FirstMate\":\"Trinity\",\"Operator\":[\"Link\",\"Tank\"],\"Medic\":\"Dozer\",\"Crewmen\":[\"Apoc\",\"Cypher\",\"Mouse\",\"Neo\",\"Switch\"]}' --description \"The structure of the crew of the Nebuchadnezzar hovercraft.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"int\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-neo-age\" --variable-type int --value '28' --description \"Neo's age in the matrix.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"bool\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-blue-piller\" --variable-type bool --value 'false' --description \"Zion membership criteria.\" ${s.connId}\\n`[\n 'brightCyan'\n ]\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (await getTokens()) {\n verboseMessage('Creating variable...');\n const outcome = await createVariable(\n options.variableId,\n options.value,\n options.description,\n options.variableType\n );\n if (!outcome) process.exitCode = 1;\n } else {\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\nprogram.parse();\n"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,uBAAuB;AAC1C,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAMC,OAAO,GAAG,IAAID,YAAY,CAAC,2BAA2B,CAAC;AAE7DC,OAAO,CACJC,WAAW,CAAC,mBAAmB,CAAC,CAChCC,cAAc,CAAC,iCAAiC,EAAE,cAAc,CAAC,CACjEA,cAAc,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CACpDC,MAAM,CAAC,6BAA6B,EAAE,uBAAuB,CAAC,CAC9DA,MAAM,CACL,iCAAiC,EACjC,gGAAgG,EAChG,QACF,CAAC,CACAC,WAAW,CACV,OAAO,EACN,mBAAkB,GAChB,iEAAgE,GAChE,oIAAmIT,CAAC,CAACU,MAAO,IAAG,CAC9I,YAAY,CACb,GACA,6CAA4C,GAC5C,wPAAuPV,CAAC,CAACU,MAAO,IAAG,CAClQ,YAAY,CACb,GACA,8CAA6C,GAC7C,2UAA0UV,CAAC,CAACU,MAAO,IAAG,CACrV,YAAY,CACb,GACA,2CAA0C,GAC1C,uIAAsIV,CAAC,CAACU,MAAO,IAAG,CACjJ,YAAY,CACb,GACA,4CAA2C,GAC3C,gJAA+IV,CAAC,CAACU,MAAO,IAAG,CAC1J,YAAY,CAElB,CAAC,CACAC,MAAM;AACL;AACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;EACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;EACD,IAAI,MAAMhB,SAAS,CAAC,CAAC,EAAE;IACrBE,cAAc,CAAC,sBAAsB,CAAC;IACtC,MAAMgB,OAAO,GAAG,MAAMjB,cAAc,CAClCc,OAAO,CAACI,UAAU,EAClBJ,OAAO,CAACK,KAAK,EACbL,OAAO,CAACV,WAAW,EACnBU,OAAO,CAACM,YACV,CAAC;IACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC,CAAC,MAAM;IACLD,OAAO,CAACC,QAAQ,GAAG,CAAC;EACtB;AACF;AACA;AACF,CAAC;AAEHnB,OAAO,CAACoB,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"esv-variable-create.js","names":["s","getTokens","createVariable","verboseMessage","FrodoCommand","setup","program","description","requiredOption","option","addHelpText","connId","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","outcome","variableId","value","variableType","process","exitCode"],"sources":["../../../src/cli/esv/esv-variable-create.ts"],"sourcesContent":["import * as s from '../../help/SampleData';\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { createVariable } from '../../ops/cloud/VariablesOps';\nimport { verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo esv variable create');\n\n program\n .description('Create variables.')\n .requiredOption('-i, --variable-id <variable-id>', 'Variable id.')\n .requiredOption('--value <value>', 'Variable value.')\n .option('--description [description]', 'Variable description.')\n .option(\n '--variable-type [variable-type]',\n 'Variable type. Must be one of \"string\", \"list\", \"array\", \"object\", \"bool\", \"int\", or \"number\".',\n 'string'\n )\n .addHelpText(\n 'after',\n `Usage Examples:\\n` +\n ` Create an ESV variable using implied default type \"string\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-trinity-phone\" --value \"(312)-555-0690\" --description \"Trinity's phone number.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"array\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-nebuchadnezzar-crew\" --variable-type array --value '[\"Morpheus\",\"Trinity\",\"Link\",\"Tank\",\"Dozer\",\"Apoc\",\"Cypher\",\"Mouse\",\"Neo\",\"Switch\"]' --description \"The crew of the Nebuchadnezzar hovercraft.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"object\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-nebuchadnezzar-crew-structure\" --variable-type object --value '{\"Captain\":\"Morpheus\",\"FirstMate\":\"Trinity\",\"Operator\":[\"Link\",\"Tank\"],\"Medic\":\"Dozer\",\"Crewmen\":[\"Apoc\",\"Cypher\",\"Mouse\",\"Neo\",\"Switch\"]}' --description \"The structure of the crew of the Nebuchadnezzar hovercraft.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"int\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-neo-age\" --variable-type int --value '28' --description \"Neo's age in the matrix.\" ${s.connId}\\n`[\n 'brightCyan'\n ] +\n ` Create an ESV variable of type \"bool\":\\n` +\n ` $ frodo esv variable create --variable-id \"esv-blue-piller\" --variable-type bool --value 'false' --description \"Zion membership criteria.\" ${s.connId}\\n`[\n 'brightCyan'\n ]\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (await getTokens()) {\n verboseMessage('Creating variable...');\n const outcome = await createVariable(\n options.variableId,\n options.value,\n options.description,\n options.variableType\n );\n if (!outcome) process.exitCode = 1;\n } else {\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,uBAAuB;AAC1C,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,2BAA2B,CAAC;EAE7DE,OAAO,CACJC,WAAW,CAAC,mBAAmB,CAAC,CAChCC,cAAc,CAAC,iCAAiC,EAAE,cAAc,CAAC,CACjEA,cAAc,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CACpDC,MAAM,CAAC,6BAA6B,EAAE,uBAAuB,CAAC,CAC9DA,MAAM,CACL,iCAAiC,EACjC,gGAAgG,EAChG,QACF,CAAC,CACAC,WAAW,CACV,OAAO,EACN,mBAAkB,GAChB,iEAAgE,GAChE,oIAAmIV,CAAC,CAACW,MAAO,IAAG,CAC9I,YAAY,CACb,GACA,6CAA4C,GAC5C,wPAAuPX,CAAC,CAACW,MAAO,IAAG,CAClQ,YAAY,CACb,GACA,8CAA6C,GAC7C,2UAA0UX,CAAC,CAACW,MAAO,IAAG,CACrV,YAAY,CACb,GACA,2CAA0C,GAC1C,uIAAsIX,CAAC,CAACW,MAAO,IAAG,CACjJ,YAAY,CACb,GACA,4CAA2C,GAC3C,gJAA+IX,CAAC,CAACW,MAAO,IAAG,CAC1J,YAAY,CAElB,CAAC,CACAC,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;IACD,IAAI,MAAMjB,SAAS,CAAC,CAAC,EAAE;MACrBE,cAAc,CAAC,sBAAsB,CAAC;MACtC,MAAMiB,OAAO,GAAG,MAAMlB,cAAc,CAClCe,OAAO,CAACI,UAAU,EAClBJ,OAAO,CAACK,KAAK,EACbL,OAAO,CAACV,WAAW,EACnBU,OAAO,CAACM,YACV,CAAC;MACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC,CAAC,MAAM;MACLD,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOnB,OAAO;AAChB"}
@@ -3,31 +3,33 @@ import { getTokens } from '../../ops/AuthenticateOps';
3
3
  import { deleteVariableById, deleteVariables } from '../../ops/cloud/VariablesOps';
4
4
  import { printMessage, verboseMessage } from '../../utils/Console.js';
5
5
  import { FrodoCommand } from '../FrodoCommand';
6
- const program = new FrodoCommand('frodo cmd sub2 delete');
7
- program.description('Delete variables.').addOption(new Option('-i, --variable-id <variable-id>', 'Variable id. If specified, -a is ignored.')).addOption(new Option('-a, --all', 'Delete all variable in a realm. Ignored with -i.')).addOption(new Option('--no-deep', 'No deep delete. This leaves orphaned configuration artifacts behind.')).action(
8
- // implement command logic inside action handler
9
- async (host, realm, user, password, options, command) => {
10
- command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
11
- // delete by id
12
- if (options.variableId && (await getTokens())) {
13
- verboseMessage('Deleting variable...');
14
- const outcome = await deleteVariableById(options.variableId);
15
- if (!outcome) process.exitCode = 1;
16
- }
17
- // --all -a
18
- else if (options.all && (await getTokens())) {
19
- verboseMessage('Deleting all variables...');
20
- const outcome = await deleteVariables();
21
- if (!outcome) process.exitCode = 1;
22
- }
23
- // unrecognized combination of options or no options
24
- else {
25
- printMessage('Unrecognized combination of options or no options...');
26
- program.help();
27
- process.exitCode = 1;
6
+ export default function setup() {
7
+ const program = new FrodoCommand('frodo cmd sub2 delete');
8
+ program.description('Delete variables.').addOption(new Option('-i, --variable-id <variable-id>', 'Variable id. If specified, -a is ignored.')).addOption(new Option('-a, --all', 'Delete all variable in a realm. Ignored with -i.')).addOption(new Option('--no-deep', 'No deep delete. This leaves orphaned configuration artifacts behind.')).action(
9
+ // implement command logic inside action handler
10
+ async (host, realm, user, password, options, command) => {
11
+ command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
12
+ // delete by id
13
+ if (options.variableId && (await getTokens())) {
14
+ verboseMessage('Deleting variable...');
15
+ const outcome = await deleteVariableById(options.variableId);
16
+ if (!outcome) process.exitCode = 1;
17
+ }
18
+ // --all -a
19
+ else if (options.all && (await getTokens())) {
20
+ verboseMessage('Deleting all variables...');
21
+ const outcome = await deleteVariables();
22
+ if (!outcome) process.exitCode = 1;
23
+ }
24
+ // unrecognized combination of options or no options
25
+ else {
26
+ printMessage('Unrecognized combination of options or no options...');
27
+ program.help();
28
+ process.exitCode = 1;
29
+ }
28
30
  }
31
+ // end command logic inside action handler
32
+ );
33
+ return program;
29
34
  }
30
- // end command logic inside action handler
31
- );
32
- program.parse();
33
35
  //# sourceMappingURL=esv-variable-delete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"esv-variable-delete.js","names":["Option","getTokens","deleteVariableById","deleteVariables","printMessage","verboseMessage","FrodoCommand","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","outcome","process","exitCode","all","help","parse"],"sources":["../../../src/cli/esv/esv-variable-delete.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport {\n deleteVariableById,\n deleteVariables,\n} from '../../ops/cloud/VariablesOps';\nimport { printMessage, verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nconst program = new FrodoCommand('frodo cmd sub2 delete');\n\nprogram\n .description('Delete variables.')\n .addOption(\n new Option(\n '-i, --variable-id <variable-id>',\n 'Variable id. If specified, -a is ignored.'\n )\n )\n .addOption(\n new Option('-a, --all', 'Delete all variable in a realm. Ignored with -i.')\n )\n .addOption(\n new Option(\n '--no-deep',\n 'No deep delete. This leaves orphaned configuration artifacts behind.'\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n // delete by id\n if (options.variableId && (await getTokens())) {\n verboseMessage('Deleting variable...');\n const outcome = await deleteVariableById(options.variableId);\n if (!outcome) process.exitCode = 1;\n }\n // --all -a\n else if (options.all && (await getTokens())) {\n verboseMessage('Deleting all variables...');\n const outcome = await deleteVariables();\n if (!outcome) process.exitCode = 1;\n }\n // unrecognized combination of options or no options\n else {\n printMessage('Unrecognized combination of options or no options...');\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\nprogram.parse();\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SACEC,kBAAkB,EAClBC,eAAe,QACV,8BAA8B;AACrC,SAASC,YAAY,EAAEC,cAAc,QAAQ,wBAAwB;AACrE,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAMC,OAAO,GAAG,IAAID,YAAY,CAAC,uBAAuB,CAAC;AAEzDC,OAAO,CACJC,WAAW,CAAC,mBAAmB,CAAC,CAChCC,SAAS,CACR,IAAIT,MAAM,CACR,iCAAiC,EACjC,2CACF,CACF,CAAC,CACAS,SAAS,CACR,IAAIT,MAAM,CAAC,WAAW,EAAE,kDAAkD,CAC5E,CAAC,CACAS,SAAS,CACR,IAAIT,MAAM,CACR,WAAW,EACX,sEACF,CACF,CAAC,CACAU,MAAM;AACL;AACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;EACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;EACD;EACA,IAAID,OAAO,CAACG,UAAU,KAAK,MAAMjB,SAAS,CAAC,CAAC,CAAC,EAAE;IAC7CI,cAAc,CAAC,sBAAsB,CAAC;IACtC,MAAMc,OAAO,GAAG,MAAMjB,kBAAkB,CAACa,OAAO,CAACG,UAAU,CAAC;IAC5D,IAAI,CAACC,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC;EACA;EAAA,KACK,IAAIN,OAAO,CAACO,GAAG,KAAK,MAAMrB,SAAS,CAAC,CAAC,CAAC,EAAE;IAC3CI,cAAc,CAAC,2BAA2B,CAAC;IAC3C,MAAMc,OAAO,GAAG,MAAMhB,eAAe,CAAC,CAAC;IACvC,IAAI,CAACgB,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC;EACA;EAAA,KACK;IACHjB,YAAY,CAAC,sDAAsD,CAAC;IACpEG,OAAO,CAACgB,IAAI,CAAC,CAAC;IACdH,OAAO,CAACC,QAAQ,GAAG,CAAC;EACtB;AACF;AACA;AACF,CAAC;AAEHd,OAAO,CAACiB,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"esv-variable-delete.js","names":["Option","getTokens","deleteVariableById","deleteVariables","printMessage","verboseMessage","FrodoCommand","setup","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","outcome","process","exitCode","all","help"],"sources":["../../../src/cli/esv/esv-variable-delete.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport {\n deleteVariableById,\n deleteVariables,\n} from '../../ops/cloud/VariablesOps';\nimport { printMessage, verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo cmd sub2 delete');\n\n program\n .description('Delete variables.')\n .addOption(\n new Option(\n '-i, --variable-id <variable-id>',\n 'Variable id. If specified, -a is ignored.'\n )\n )\n .addOption(\n new Option(\n '-a, --all',\n 'Delete all variable in a realm. Ignored with -i.'\n )\n )\n .addOption(\n new Option(\n '--no-deep',\n 'No deep delete. This leaves orphaned configuration artifacts behind.'\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n // delete by id\n if (options.variableId && (await getTokens())) {\n verboseMessage('Deleting variable...');\n const outcome = await deleteVariableById(options.variableId);\n if (!outcome) process.exitCode = 1;\n }\n // --all -a\n else if (options.all && (await getTokens())) {\n verboseMessage('Deleting all variables...');\n const outcome = await deleteVariables();\n if (!outcome) process.exitCode = 1;\n }\n // unrecognized combination of options or no options\n else {\n printMessage('Unrecognized combination of options or no options...');\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SACEC,kBAAkB,EAClBC,eAAe,QACV,8BAA8B;AACrC,SAASC,YAAY,EAAEC,cAAc,QAAQ,wBAAwB;AACrE,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,uBAAuB,CAAC;EAEzDE,OAAO,CACJC,WAAW,CAAC,mBAAmB,CAAC,CAChCC,SAAS,CACR,IAAIV,MAAM,CACR,iCAAiC,EACjC,2CACF,CACF,CAAC,CACAU,SAAS,CACR,IAAIV,MAAM,CACR,WAAW,EACX,kDACF,CACF,CAAC,CACAU,SAAS,CACR,IAAIV,MAAM,CACR,WAAW,EACX,sEACF,CACF,CAAC,CACAW,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;IACD;IACA,IAAID,OAAO,CAACG,UAAU,KAAK,MAAMlB,SAAS,CAAC,CAAC,CAAC,EAAE;MAC7CI,cAAc,CAAC,sBAAsB,CAAC;MACtC,MAAMe,OAAO,GAAG,MAAMlB,kBAAkB,CAACc,OAAO,CAACG,UAAU,CAAC;MAC5D,IAAI,CAACC,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC;IACA;IAAA,KACK,IAAIN,OAAO,CAACO,GAAG,KAAK,MAAMtB,SAAS,CAAC,CAAC,CAAC,EAAE;MAC3CI,cAAc,CAAC,2BAA2B,CAAC;MAC3C,MAAMe,OAAO,GAAG,MAAMjB,eAAe,CAAC,CAAC;MACvC,IAAI,CAACiB,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC;IACA;IAAA,KACK;MACHlB,YAAY,CAAC,sDAAsD,CAAC;MACpEI,OAAO,CAACgB,IAAI,CAAC,CAAC;MACdH,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOd,OAAO;AAChB"}
@@ -3,20 +3,22 @@ import { getTokens } from '../../ops/AuthenticateOps';
3
3
  import { describeVariable } from '../../ops/cloud/VariablesOps';
4
4
  import { verboseMessage } from '../../utils/Console.js';
5
5
  import { FrodoCommand } from '../FrodoCommand';
6
- const program = new FrodoCommand('frodo esv variable describe');
7
- program.description('Describe variables.').addOption(new Option('-i, --variable-id <variable-id>', 'Variable id.').makeOptionMandatory()).addOption(new Option('--json', 'Output in JSON format.')).action(
8
- // implement command logic inside action handler
9
- async (host, realm, user, password, options, command) => {
10
- command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
11
- if (await getTokens()) {
12
- verboseMessage(`Describing variable ${options.variableId}...`);
13
- const outcome = await describeVariable(options.variableId, options.json);
14
- if (!outcome) process.exitCode = 1;
15
- } else {
16
- process.exitCode = 1;
6
+ export default function setup() {
7
+ const program = new FrodoCommand('frodo esv variable describe');
8
+ program.description('Describe variables.').addOption(new Option('-i, --variable-id <variable-id>', 'Variable id.').makeOptionMandatory()).addOption(new Option('--json', 'Output in JSON format.')).action(
9
+ // implement command logic inside action handler
10
+ async (host, realm, user, password, options, command) => {
11
+ command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
12
+ if (await getTokens()) {
13
+ verboseMessage(`Describing variable ${options.variableId}...`);
14
+ const outcome = await describeVariable(options.variableId, options.json);
15
+ if (!outcome) process.exitCode = 1;
16
+ } else {
17
+ process.exitCode = 1;
18
+ }
17
19
  }
20
+ // end command logic inside action handler
21
+ );
22
+ return program;
18
23
  }
19
- // end command logic inside action handler
20
- );
21
- program.parse();
22
24
  //# sourceMappingURL=esv-variable-describe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"esv-variable-describe.js","names":["Option","getTokens","describeVariable","verboseMessage","FrodoCommand","program","description","addOption","makeOptionMandatory","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","outcome","json","process","exitCode","parse"],"sources":["../../../src/cli/esv/esv-variable-describe.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { describeVariable } from '../../ops/cloud/VariablesOps';\nimport { verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nconst program = new FrodoCommand('frodo esv variable describe');\n\nprogram\n .description('Describe variables.')\n .addOption(\n new Option(\n '-i, --variable-id <variable-id>',\n 'Variable id.'\n ).makeOptionMandatory()\n )\n .addOption(new Option('--json', 'Output in JSON format.'))\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (await getTokens()) {\n verboseMessage(`Describing variable ${options.variableId}...`);\n const outcome = await describeVariable(\n options.variableId,\n options.json\n );\n if (!outcome) process.exitCode = 1;\n } else {\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\nprogram.parse();\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,gBAAgB,QAAQ,8BAA8B;AAC/D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAMC,OAAO,GAAG,IAAID,YAAY,CAAC,6BAA6B,CAAC;AAE/DC,OAAO,CACJC,WAAW,CAAC,qBAAqB,CAAC,CAClCC,SAAS,CACR,IAAIP,MAAM,CACR,iCAAiC,EACjC,cACF,CAAC,CAACQ,mBAAmB,CAAC,CACxB,CAAC,CACAD,SAAS,CAAC,IAAIP,MAAM,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAC,CACzDS,MAAM;AACL;AACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;EACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;EACD,IAAI,MAAMd,SAAS,CAAC,CAAC,EAAE;IACrBE,cAAc,CAAE,uBAAsBW,OAAO,CAACG,UAAW,KAAI,CAAC;IAC9D,MAAMC,OAAO,GAAG,MAAMhB,gBAAgB,CACpCY,OAAO,CAACG,UAAU,EAClBH,OAAO,CAACK,IACV,CAAC;IACD,IAAI,CAACD,OAAO,EAAEE,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC,CAAC,MAAM;IACLD,OAAO,CAACC,QAAQ,GAAG,CAAC;EACtB;AACF;AACA;AACF,CAAC;AAEHhB,OAAO,CAACiB,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"esv-variable-describe.js","names":["Option","getTokens","describeVariable","verboseMessage","FrodoCommand","setup","program","description","addOption","makeOptionMandatory","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","outcome","json","process","exitCode"],"sources":["../../../src/cli/esv/esv-variable-describe.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { describeVariable } from '../../ops/cloud/VariablesOps';\nimport { verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo esv variable describe');\n\n program\n .description('Describe variables.')\n .addOption(\n new Option(\n '-i, --variable-id <variable-id>',\n 'Variable id.'\n ).makeOptionMandatory()\n )\n .addOption(new Option('--json', 'Output in JSON format.'))\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (await getTokens()) {\n verboseMessage(`Describing variable ${options.variableId}...`);\n const outcome = await describeVariable(\n options.variableId,\n options.json\n );\n if (!outcome) process.exitCode = 1;\n } else {\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,gBAAgB,QAAQ,8BAA8B;AAC/D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,6BAA6B,CAAC;EAE/DE,OAAO,CACJC,WAAW,CAAC,qBAAqB,CAAC,CAClCC,SAAS,CACR,IAAIR,MAAM,CACR,iCAAiC,EACjC,cACF,CAAC,CAACS,mBAAmB,CAAC,CACxB,CAAC,CACAD,SAAS,CAAC,IAAIR,MAAM,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAC,CACzDU,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;IACD,IAAI,MAAMf,SAAS,CAAC,CAAC,EAAE;MACrBE,cAAc,CAAE,uBAAsBY,OAAO,CAACG,UAAW,KAAI,CAAC;MAC9D,MAAMC,OAAO,GAAG,MAAMjB,gBAAgB,CACpCa,OAAO,CAACG,UAAU,EAClBH,OAAO,CAACK,IACV,CAAC;MACD,IAAI,CAACD,OAAO,EAAEE,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC,CAAC,MAAM;MACLD,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOhB,OAAO;AAChB"}
@@ -4,30 +4,32 @@ import { getTokens } from '../../ops/AuthenticateOps';
4
4
  import { exportVariablesToFile, exportVariablesToFiles, exportVariableToFile } from '../../ops/cloud/VariablesOps';
5
5
  import { printMessage, verboseMessage } from '../../utils/Console';
6
6
  import { FrodoCommand } from '../FrodoCommand';
7
- const program = new FrodoCommand('frodo esv variable export');
8
- program.description('Export variables.').addOption(new Option('-i, --variable-id <variable-id>', 'Variable id. If specified, -a and -A are ignored.')).addOption(new Option('-f, --file <file>', 'Name of the export file.')).addOption(new Option('-a, --all', 'Export all variables to a single file. Ignored with -i.')).addOption(new Option('-A, --all-separate', 'Export all variables to separate files (*.variable.json) in the current directory. Ignored with -i or -a.')).addOption(new Option('--no-decode', 'Do not include decoded variable value in export').default(false, 'false')).addOption(new Option('-N, --no-metadata', 'Does not include metadata in the export file.')).action(
9
- // implement command logic inside action handler
10
- async (host, realm, user, password, options, command) => {
11
- command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
12
- if (options.variableId && (await getTokens())) {
13
- verboseMessage(`Exporting variable "${options.variableId}" from realm "${state.getRealm()}"...`);
14
- const outcome = await exportVariableToFile(options.variableId, options.file, options.decode, options.metadata);
15
- if (!outcome) process.exitCode = 1;
16
- } else if (options.all && (await getTokens())) {
17
- verboseMessage('Exporting all variables to a single file...');
18
- const outcome = await exportVariablesToFile(options.file, options.decode, options.metadata);
19
- if (!outcome) process.exitCode = 1;
20
- } else if (options.allSeparate && (await getTokens())) {
21
- verboseMessage('Exporting all variables to separate files...');
22
- const outcome = await exportVariablesToFiles(options.decode, options.metadata);
23
- if (!outcome) process.exitCode = 1;
24
- } else {
25
- printMessage('Unrecognized combination of options or no options...', 'error');
26
- program.help();
27
- process.exitCode = 1;
7
+ export default function setup() {
8
+ const program = new FrodoCommand('frodo esv variable export');
9
+ program.description('Export variables.').addOption(new Option('-i, --variable-id <variable-id>', 'Variable id. If specified, -a and -A are ignored.')).addOption(new Option('-f, --file <file>', 'Name of the export file.')).addOption(new Option('-a, --all', 'Export all variables to a single file. Ignored with -i.')).addOption(new Option('-A, --all-separate', 'Export all variables to separate files (*.variable.json) in the current directory. Ignored with -i or -a.')).addOption(new Option('--no-decode', 'Do not include decoded variable value in export').default(false, 'false')).addOption(new Option('-N, --no-metadata', 'Does not include metadata in the export file.')).action(
10
+ // implement command logic inside action handler
11
+ async (host, realm, user, password, options, command) => {
12
+ command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
13
+ if (options.variableId && (await getTokens())) {
14
+ verboseMessage(`Exporting variable "${options.variableId}" from realm "${state.getRealm()}"...`);
15
+ const outcome = await exportVariableToFile(options.variableId, options.file, options.decode, options.metadata);
16
+ if (!outcome) process.exitCode = 1;
17
+ } else if (options.all && (await getTokens())) {
18
+ verboseMessage('Exporting all variables to a single file...');
19
+ const outcome = await exportVariablesToFile(options.file, options.decode, options.metadata);
20
+ if (!outcome) process.exitCode = 1;
21
+ } else if (options.allSeparate && (await getTokens())) {
22
+ verboseMessage('Exporting all variables to separate files...');
23
+ const outcome = await exportVariablesToFiles(options.decode, options.metadata);
24
+ if (!outcome) process.exitCode = 1;
25
+ } else {
26
+ printMessage('Unrecognized combination of options or no options...', 'error');
27
+ program.help();
28
+ process.exitCode = 1;
29
+ }
28
30
  }
31
+ // end command logic inside action handler
32
+ );
33
+ return program;
29
34
  }
30
- // end command logic inside action handler
31
- );
32
- program.parse();
33
35
  //# sourceMappingURL=esv-variable-export.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"esv-variable-export.js","names":["state","Option","getTokens","exportVariablesToFile","exportVariablesToFiles","exportVariableToFile","printMessage","verboseMessage","FrodoCommand","program","description","addOption","default","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","getRealm","outcome","file","decode","metadata","process","exitCode","all","allSeparate","help","parse"],"sources":["../../../src/cli/esv/esv-variable-export.ts"],"sourcesContent":["import { state } from '@rockcarver/frodo-lib';\nimport { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport {\n exportVariablesToFile,\n exportVariablesToFiles,\n exportVariableToFile,\n} from '../../ops/cloud/VariablesOps';\nimport { printMessage, verboseMessage } from '../../utils/Console';\nimport { FrodoCommand } from '../FrodoCommand';\n\nconst program = new FrodoCommand('frodo esv variable export');\n\nprogram\n .description('Export variables.')\n .addOption(\n new Option(\n '-i, --variable-id <variable-id>',\n 'Variable id. If specified, -a and -A are ignored.'\n )\n )\n .addOption(new Option('-f, --file <file>', 'Name of the export file.'))\n .addOption(\n new Option(\n '-a, --all',\n 'Export all variables to a single file. Ignored with -i.'\n )\n )\n .addOption(\n new Option(\n '-A, --all-separate',\n 'Export all variables to separate files (*.variable.json) in the current directory. Ignored with -i or -a.'\n )\n )\n .addOption(\n new Option(\n '--no-decode',\n 'Do not include decoded variable value in export'\n ).default(false, 'false')\n )\n .addOption(\n new Option(\n '-N, --no-metadata',\n 'Does not include metadata in the export file.'\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (options.variableId && (await getTokens())) {\n verboseMessage(\n `Exporting variable \"${\n options.variableId\n }\" from realm \"${state.getRealm()}\"...`\n );\n const outcome = await exportVariableToFile(\n options.variableId,\n options.file,\n options.decode,\n options.metadata\n );\n if (!outcome) process.exitCode = 1;\n } else if (options.all && (await getTokens())) {\n verboseMessage('Exporting all variables to a single file...');\n const outcome = await exportVariablesToFile(\n options.file,\n options.decode,\n options.metadata\n );\n if (!outcome) process.exitCode = 1;\n } else if (options.allSeparate && (await getTokens())) {\n verboseMessage('Exporting all variables to separate files...');\n const outcome = await exportVariablesToFiles(\n options.decode,\n options.metadata\n );\n if (!outcome) process.exitCode = 1;\n } else {\n printMessage(\n 'Unrecognized combination of options or no options...',\n 'error'\n );\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\nprogram.parse();\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,uBAAuB;AAC7C,SAASC,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SACEC,qBAAqB,EACrBC,sBAAsB,EACtBC,oBAAoB,QACf,8BAA8B;AACrC,SAASC,YAAY,EAAEC,cAAc,QAAQ,qBAAqB;AAClE,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAMC,OAAO,GAAG,IAAID,YAAY,CAAC,2BAA2B,CAAC;AAE7DC,OAAO,CACJC,WAAW,CAAC,mBAAmB,CAAC,CAChCC,SAAS,CACR,IAAIV,MAAM,CACR,iCAAiC,EACjC,mDACF,CACF,CAAC,CACAU,SAAS,CAAC,IAAIV,MAAM,CAAC,mBAAmB,EAAE,0BAA0B,CAAC,CAAC,CACtEU,SAAS,CACR,IAAIV,MAAM,CACR,WAAW,EACX,yDACF,CACF,CAAC,CACAU,SAAS,CACR,IAAIV,MAAM,CACR,oBAAoB,EACpB,2GACF,CACF,CAAC,CACAU,SAAS,CACR,IAAIV,MAAM,CACR,aAAa,EACb,iDACF,CAAC,CAACW,OAAO,CAAC,KAAK,EAAE,OAAO,CAC1B,CAAC,CACAD,SAAS,CACR,IAAIV,MAAM,CACR,mBAAmB,EACnB,+CACF,CACF,CAAC,CACAY,MAAM;AACL;AACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;EACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;EACD,IAAID,OAAO,CAACG,UAAU,KAAK,MAAMnB,SAAS,CAAC,CAAC,CAAC,EAAE;IAC7CK,cAAc,CACX,uBACCW,OAAO,CAACG,UACT,iBAAgBrB,KAAK,CAACsB,QAAQ,CAAC,CAAE,MACpC,CAAC;IACD,MAAMC,OAAO,GAAG,MAAMlB,oBAAoB,CACxCa,OAAO,CAACG,UAAU,EAClBH,OAAO,CAACM,IAAI,EACZN,OAAO,CAACO,MAAM,EACdP,OAAO,CAACQ,QACV,CAAC;IACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC,CAAC,MAAM,IAAIV,OAAO,CAACW,GAAG,KAAK,MAAM3B,SAAS,CAAC,CAAC,CAAC,EAAE;IAC7CK,cAAc,CAAC,6CAA6C,CAAC;IAC7D,MAAMgB,OAAO,GAAG,MAAMpB,qBAAqB,CACzCe,OAAO,CAACM,IAAI,EACZN,OAAO,CAACO,MAAM,EACdP,OAAO,CAACQ,QACV,CAAC;IACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC,CAAC,MAAM,IAAIV,OAAO,CAACY,WAAW,KAAK,MAAM5B,SAAS,CAAC,CAAC,CAAC,EAAE;IACrDK,cAAc,CAAC,8CAA8C,CAAC;IAC9D,MAAMgB,OAAO,GAAG,MAAMnB,sBAAsB,CAC1Cc,OAAO,CAACO,MAAM,EACdP,OAAO,CAACQ,QACV,CAAC;IACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC,CAAC,MAAM;IACLtB,YAAY,CACV,sDAAsD,EACtD,OACF,CAAC;IACDG,OAAO,CAACsB,IAAI,CAAC,CAAC;IACdJ,OAAO,CAACC,QAAQ,GAAG,CAAC;EACtB;AACF;AACA;AACF,CAAC;AAEHnB,OAAO,CAACuB,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"esv-variable-export.js","names":["state","Option","getTokens","exportVariablesToFile","exportVariablesToFiles","exportVariableToFile","printMessage","verboseMessage","FrodoCommand","setup","program","description","addOption","default","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","getRealm","outcome","file","decode","metadata","process","exitCode","all","allSeparate","help"],"sources":["../../../src/cli/esv/esv-variable-export.ts"],"sourcesContent":["import { state } from '@rockcarver/frodo-lib';\nimport { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport {\n exportVariablesToFile,\n exportVariablesToFiles,\n exportVariableToFile,\n} from '../../ops/cloud/VariablesOps';\nimport { printMessage, verboseMessage } from '../../utils/Console';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo esv variable export');\n\n program\n .description('Export variables.')\n .addOption(\n new Option(\n '-i, --variable-id <variable-id>',\n 'Variable id. If specified, -a and -A are ignored.'\n )\n )\n .addOption(new Option('-f, --file <file>', 'Name of the export file.'))\n .addOption(\n new Option(\n '-a, --all',\n 'Export all variables to a single file. Ignored with -i.'\n )\n )\n .addOption(\n new Option(\n '-A, --all-separate',\n 'Export all variables to separate files (*.variable.json) in the current directory. Ignored with -i or -a.'\n )\n )\n .addOption(\n new Option(\n '--no-decode',\n 'Do not include decoded variable value in export'\n ).default(false, 'false')\n )\n .addOption(\n new Option(\n '-N, --no-metadata',\n 'Does not include metadata in the export file.'\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (options.variableId && (await getTokens())) {\n verboseMessage(\n `Exporting variable \"${\n options.variableId\n }\" from realm \"${state.getRealm()}\"...`\n );\n const outcome = await exportVariableToFile(\n options.variableId,\n options.file,\n options.decode,\n options.metadata\n );\n if (!outcome) process.exitCode = 1;\n } else if (options.all && (await getTokens())) {\n verboseMessage('Exporting all variables to a single file...');\n const outcome = await exportVariablesToFile(\n options.file,\n options.decode,\n options.metadata\n );\n if (!outcome) process.exitCode = 1;\n } else if (options.allSeparate && (await getTokens())) {\n verboseMessage('Exporting all variables to separate files...');\n const outcome = await exportVariablesToFiles(\n options.decode,\n options.metadata\n );\n if (!outcome) process.exitCode = 1;\n } else {\n printMessage(\n 'Unrecognized combination of options or no options...',\n 'error'\n );\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,uBAAuB;AAC7C,SAASC,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SACEC,qBAAqB,EACrBC,sBAAsB,EACtBC,oBAAoB,QACf,8BAA8B;AACrC,SAASC,YAAY,EAAEC,cAAc,QAAQ,qBAAqB;AAClE,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,2BAA2B,CAAC;EAE7DE,OAAO,CACJC,WAAW,CAAC,mBAAmB,CAAC,CAChCC,SAAS,CACR,IAAIX,MAAM,CACR,iCAAiC,EACjC,mDACF,CACF,CAAC,CACAW,SAAS,CAAC,IAAIX,MAAM,CAAC,mBAAmB,EAAE,0BAA0B,CAAC,CAAC,CACtEW,SAAS,CACR,IAAIX,MAAM,CACR,WAAW,EACX,yDACF,CACF,CAAC,CACAW,SAAS,CACR,IAAIX,MAAM,CACR,oBAAoB,EACpB,2GACF,CACF,CAAC,CACAW,SAAS,CACR,IAAIX,MAAM,CACR,aAAa,EACb,iDACF,CAAC,CAACY,OAAO,CAAC,KAAK,EAAE,OAAO,CAC1B,CAAC,CACAD,SAAS,CACR,IAAIX,MAAM,CACR,mBAAmB,EACnB,+CACF,CACF,CAAC,CACAa,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;IACD,IAAID,OAAO,CAACG,UAAU,KAAK,MAAMpB,SAAS,CAAC,CAAC,CAAC,EAAE;MAC7CK,cAAc,CACX,uBACCY,OAAO,CAACG,UACT,iBAAgBtB,KAAK,CAACuB,QAAQ,CAAC,CAAE,MACpC,CAAC;MACD,MAAMC,OAAO,GAAG,MAAMnB,oBAAoB,CACxCc,OAAO,CAACG,UAAU,EAClBH,OAAO,CAACM,IAAI,EACZN,OAAO,CAACO,MAAM,EACdP,OAAO,CAACQ,QACV,CAAC;MACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC,CAAC,MAAM,IAAIV,OAAO,CAACW,GAAG,KAAK,MAAM5B,SAAS,CAAC,CAAC,CAAC,EAAE;MAC7CK,cAAc,CAAC,6CAA6C,CAAC;MAC7D,MAAMiB,OAAO,GAAG,MAAMrB,qBAAqB,CACzCgB,OAAO,CAACM,IAAI,EACZN,OAAO,CAACO,MAAM,EACdP,OAAO,CAACQ,QACV,CAAC;MACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC,CAAC,MAAM,IAAIV,OAAO,CAACY,WAAW,KAAK,MAAM7B,SAAS,CAAC,CAAC,CAAC,EAAE;MACrDK,cAAc,CAAC,8CAA8C,CAAC;MAC9D,MAAMiB,OAAO,GAAG,MAAMpB,sBAAsB,CAC1Ce,OAAO,CAACO,MAAM,EACdP,OAAO,CAACQ,QACV,CAAC;MACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC,CAAC,MAAM;MACLvB,YAAY,CACV,sDAAsD,EACtD,OACF,CAAC;MACDI,OAAO,CAACsB,IAAI,CAAC,CAAC;MACdJ,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOnB,OAAO;AAChB"}
@@ -1,18 +1,20 @@
1
1
  import { Option } from 'commander';
2
2
  import { getTokens } from '../../ops/AuthenticateOps';
3
3
  import { FrodoCommand } from '../FrodoCommand';
4
- const program = new FrodoCommand('frodo esv variable import');
5
- program.description('Import variables.').addOption(new Option('-i, --variable-id <variable-id>', 'Variable id. If specified, only one variable is imported and the options -a and -A are ignored.')).addOption(new Option('-f, --file <file>', 'Name of the file to import.')).addOption(new Option('-a, --all', 'Import all variables from single file. Ignored with -i.')).addOption(new Option('-A, --all-separate', 'Import all variables from separate files (*.variable.json) in the current directory. Ignored with -i or -a.')).action(
6
- // implement command logic inside action handler
7
- async (host, realm, user, password, options, command) => {
8
- command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
9
- if (await getTokens()) {
10
- // code goes here
11
- } else {
12
- process.exitCode = 1;
4
+ export default function setup() {
5
+ const program = new FrodoCommand('frodo esv variable import');
6
+ program.description('Import variables.').addOption(new Option('-i, --variable-id <variable-id>', 'Variable id. If specified, only one variable is imported and the options -a and -A are ignored.')).addOption(new Option('-f, --file <file>', 'Name of the file to import.')).addOption(new Option('-a, --all', 'Import all variables from single file. Ignored with -i.')).addOption(new Option('-A, --all-separate', 'Import all variables from separate files (*.variable.json) in the current directory. Ignored with -i or -a.')).action(
7
+ // implement command logic inside action handler
8
+ async (host, realm, user, password, options, command) => {
9
+ command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
10
+ if (await getTokens()) {
11
+ // code goes here
12
+ } else {
13
+ process.exitCode = 1;
14
+ }
13
15
  }
16
+ // end command logic inside action handler
17
+ );
18
+ return program;
14
19
  }
15
- // end command logic inside action handler
16
- );
17
- program.parse();
18
20
  //# sourceMappingURL=esv-variable-import.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"esv-variable-import.js","names":["Option","getTokens","FrodoCommand","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","process","exitCode","parse"],"sources":["../../../src/cli/esv/esv-variable-import.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { FrodoCommand } from '../FrodoCommand';\n\nconst program = new FrodoCommand('frodo esv variable import');\n\nprogram\n .description('Import variables.')\n .addOption(\n new Option(\n '-i, --variable-id <variable-id>',\n 'Variable id. If specified, only one variable is imported and the options -a and -A are ignored.'\n )\n )\n .addOption(new Option('-f, --file <file>', 'Name of the file to import.'))\n .addOption(\n new Option(\n '-a, --all',\n 'Import all variables from single file. Ignored with -i.'\n )\n )\n .addOption(\n new Option(\n '-A, --all-separate',\n 'Import all variables from separate files (*.variable.json) in the current directory. Ignored with -i or -a.'\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (await getTokens()) {\n // code goes here\n } else {\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\nprogram.parse();\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAMC,OAAO,GAAG,IAAID,YAAY,CAAC,2BAA2B,CAAC;AAE7DC,OAAO,CACJC,WAAW,CAAC,mBAAmB,CAAC,CAChCC,SAAS,CACR,IAAIL,MAAM,CACR,iCAAiC,EACjC,iGACF,CACF,CAAC,CACAK,SAAS,CAAC,IAAIL,MAAM,CAAC,mBAAmB,EAAE,6BAA6B,CAAC,CAAC,CACzEK,SAAS,CACR,IAAIL,MAAM,CACR,WAAW,EACX,yDACF,CACF,CAAC,CACAK,SAAS,CACR,IAAIL,MAAM,CACR,oBAAoB,EACpB,6GACF,CACF,CAAC,CACAM,MAAM;AACL;AACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;EACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;EACD,IAAI,MAAMX,SAAS,CAAC,CAAC,EAAE;IACrB;EAAA,CACD,MAAM;IACLa,OAAO,CAACC,QAAQ,GAAG,CAAC;EACtB;AACF;AACA;AACF,CAAC;AAEHZ,OAAO,CAACa,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"esv-variable-import.js","names":["Option","getTokens","FrodoCommand","setup","program","description","addOption","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","process","exitCode"],"sources":["../../../src/cli/esv/esv-variable-import.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo esv variable import');\n\n program\n .description('Import variables.')\n .addOption(\n new Option(\n '-i, --variable-id <variable-id>',\n 'Variable id. If specified, only one variable is imported and the options -a and -A are ignored.'\n )\n )\n .addOption(new Option('-f, --file <file>', 'Name of the file to import.'))\n .addOption(\n new Option(\n '-a, --all',\n 'Import all variables from single file. Ignored with -i.'\n )\n )\n .addOption(\n new Option(\n '-A, --all-separate',\n 'Import all variables from separate files (*.variable.json) in the current directory. Ignored with -i or -a.'\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (await getTokens()) {\n // code goes here\n } else {\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,2BAA2B,CAAC;EAE7DE,OAAO,CACJC,WAAW,CAAC,mBAAmB,CAAC,CAChCC,SAAS,CACR,IAAIN,MAAM,CACR,iCAAiC,EACjC,iGACF,CACF,CAAC,CACAM,SAAS,CAAC,IAAIN,MAAM,CAAC,mBAAmB,EAAE,6BAA6B,CAAC,CAAC,CACzEM,SAAS,CACR,IAAIN,MAAM,CACR,WAAW,EACX,yDACF,CACF,CAAC,CACAM,SAAS,CACR,IAAIN,MAAM,CACR,oBAAoB,EACpB,6GACF,CACF,CAAC,CACAO,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;IACD,IAAI,MAAMZ,SAAS,CAAC,CAAC,EAAE;MACrB;IAAA,CACD,MAAM;MACLc,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOZ,OAAO;AAChB"}
@@ -3,20 +3,22 @@ import { getTokens } from '../../ops/AuthenticateOps';
3
3
  import { listVariables } from '../../ops/cloud/VariablesOps';
4
4
  import { verboseMessage } from '../../utils/Console.js';
5
5
  import { FrodoCommand } from '../FrodoCommand';
6
- const program = new FrodoCommand('frodo esv variable list');
7
- program.description('List variables.').addOption(new Option('-l, --long', 'Long with all fields besides usage.').default(false, 'false')).addOption(new Option('-u, --usage', 'Display usage field. If a file is provided with -f or --file, it will search for usage in the file. If a directory is provided with -D or --directory, it will search for usage in all .json files in the directory and sub-directories. If no file or directory is provided, it will perform a full export automatically to determine usage.').default(false, 'false')).addOption(new Option('-f, --file [file]', 'Optional export file to use to determine usage. Overrides -D, --directory. Only used if -u or --usage is provided as well.')).action(
8
- // implement command logic inside action handler
9
- async (host, realm, user, password, options, command) => {
10
- command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
11
- if (await getTokens()) {
12
- verboseMessage('Listing variables...');
13
- const outcome = await listVariables(options.long, options.usage, options.file);
14
- if (!outcome) process.exitCode = 1;
15
- } else {
16
- process.exitCode = 1;
6
+ export default function setup() {
7
+ const program = new FrodoCommand('frodo esv variable list');
8
+ program.description('List variables.').addOption(new Option('-l, --long', 'Long with all fields besides usage.').default(false, 'false')).addOption(new Option('-u, --usage', 'Display usage field. If a file is provided with -f or --file, it will search for usage in the file. If a directory is provided with -D or --directory, it will search for usage in all .json files in the directory and sub-directories. If no file or directory is provided, it will perform a full export automatically to determine usage.').default(false, 'false')).addOption(new Option('-f, --file [file]', 'Optional export file to use to determine usage. Overrides -D, --directory. Only used if -u or --usage is provided as well.')).action(
9
+ // implement command logic inside action handler
10
+ async (host, realm, user, password, options, command) => {
11
+ command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
12
+ if (await getTokens()) {
13
+ verboseMessage('Listing variables...');
14
+ const outcome = await listVariables(options.long, options.usage, options.file);
15
+ if (!outcome) process.exitCode = 1;
16
+ } else {
17
+ process.exitCode = 1;
18
+ }
17
19
  }
20
+ // end command logic inside action handler
21
+ );
22
+ return program;
18
23
  }
19
- // end command logic inside action handler
20
- );
21
- program.parse();
22
24
  //# sourceMappingURL=esv-variable-list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"esv-variable-list.js","names":["Option","getTokens","listVariables","verboseMessage","FrodoCommand","program","description","addOption","default","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","outcome","long","usage","file","process","exitCode","parse"],"sources":["../../../src/cli/esv/esv-variable-list.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { listVariables } from '../../ops/cloud/VariablesOps';\nimport { verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nconst program = new FrodoCommand('frodo esv variable list');\n\nprogram\n .description('List variables.')\n .addOption(\n new Option('-l, --long', 'Long with all fields besides usage.').default(\n false,\n 'false'\n )\n )\n .addOption(\n new Option(\n '-u, --usage',\n 'Display usage field. If a file is provided with -f or --file, it will search for usage in the file. If a directory is provided with -D or --directory, it will search for usage in all .json files in the directory and sub-directories. If no file or directory is provided, it will perform a full export automatically to determine usage.'\n ).default(false, 'false')\n )\n .addOption(\n new Option(\n '-f, --file [file]',\n 'Optional export file to use to determine usage. Overrides -D, --directory. Only used if -u or --usage is provided as well.'\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (await getTokens()) {\n verboseMessage('Listing variables...');\n const outcome = await listVariables(\n options.long,\n options.usage,\n options.file\n );\n if (!outcome) process.exitCode = 1;\n } else {\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\nprogram.parse();\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAMC,OAAO,GAAG,IAAID,YAAY,CAAC,yBAAyB,CAAC;AAE3DC,OAAO,CACJC,WAAW,CAAC,iBAAiB,CAAC,CAC9BC,SAAS,CACR,IAAIP,MAAM,CAAC,YAAY,EAAE,qCAAqC,CAAC,CAACQ,OAAO,CACrE,KAAK,EACL,OACF,CACF,CAAC,CACAD,SAAS,CACR,IAAIP,MAAM,CACR,aAAa,EACb,+UACF,CAAC,CAACQ,OAAO,CAAC,KAAK,EAAE,OAAO,CAC1B,CAAC,CACAD,SAAS,CACR,IAAIP,MAAM,CACR,mBAAmB,EACnB,4HACF,CACF,CAAC,CACAS,MAAM;AACL;AACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;EACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;EACD,IAAI,MAAMd,SAAS,CAAC,CAAC,EAAE;IACrBE,cAAc,CAAC,sBAAsB,CAAC;IACtC,MAAMc,OAAO,GAAG,MAAMf,aAAa,CACjCY,OAAO,CAACI,IAAI,EACZJ,OAAO,CAACK,KAAK,EACbL,OAAO,CAACM,IACV,CAAC;IACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC,CAAC,MAAM;IACLD,OAAO,CAACC,QAAQ,GAAG,CAAC;EACtB;AACF;AACA;AACF,CAAC;AAEHjB,OAAO,CAACkB,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"esv-variable-list.js","names":["Option","getTokens","listVariables","verboseMessage","FrodoCommand","setup","program","description","addOption","default","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","outcome","long","usage","file","process","exitCode"],"sources":["../../../src/cli/esv/esv-variable-list.ts"],"sourcesContent":["import { Option } from 'commander';\n\nimport { getTokens } from '../../ops/AuthenticateOps';\nimport { listVariables } from '../../ops/cloud/VariablesOps';\nimport { verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo esv variable list');\n\n program\n .description('List variables.')\n .addOption(\n new Option('-l, --long', 'Long with all fields besides usage.').default(\n false,\n 'false'\n )\n )\n .addOption(\n new Option(\n '-u, --usage',\n 'Display usage field. If a file is provided with -f or --file, it will search for usage in the file. If a directory is provided with -D or --directory, it will search for usage in all .json files in the directory and sub-directories. If no file or directory is provided, it will perform a full export automatically to determine usage.'\n ).default(false, 'false')\n )\n .addOption(\n new Option(\n '-f, --file [file]',\n 'Optional export file to use to determine usage. Overrides -D, --directory. Only used if -u or --usage is provided as well.'\n )\n )\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (await getTokens()) {\n verboseMessage('Listing variables...');\n const outcome = await listVariables(\n options.long,\n options.usage,\n options.file\n );\n if (!outcome) process.exitCode = 1;\n } else {\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,WAAW;AAElC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,yBAAyB,CAAC;EAE3DE,OAAO,CACJC,WAAW,CAAC,iBAAiB,CAAC,CAC9BC,SAAS,CACR,IAAIR,MAAM,CAAC,YAAY,EAAE,qCAAqC,CAAC,CAACS,OAAO,CACrE,KAAK,EACL,OACF,CACF,CAAC,CACAD,SAAS,CACR,IAAIR,MAAM,CACR,aAAa,EACb,+UACF,CAAC,CAACS,OAAO,CAAC,KAAK,EAAE,OAAO,CAC1B,CAAC,CACAD,SAAS,CACR,IAAIR,MAAM,CACR,mBAAmB,EACnB,4HACF,CACF,CAAC,CACAU,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;IACD,IAAI,MAAMf,SAAS,CAAC,CAAC,EAAE;MACrBE,cAAc,CAAC,sBAAsB,CAAC;MACtC,MAAMe,OAAO,GAAG,MAAMhB,aAAa,CACjCa,OAAO,CAACI,IAAI,EACZJ,OAAO,CAACK,KAAK,EACbL,OAAO,CAACM,IACV,CAAC;MACD,IAAI,CAACH,OAAO,EAAEI,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC,CAAC,MAAM;MACLD,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOjB,OAAO;AAChB"}
@@ -2,28 +2,30 @@ import { getTokens } from '../../ops/AuthenticateOps';
2
2
  import { setVariableDescription, updateVariable } from '../../ops/cloud/VariablesOps';
3
3
  import { printMessage, verboseMessage } from '../../utils/Console.js';
4
4
  import { FrodoCommand } from '../FrodoCommand';
5
- const program = new FrodoCommand('frodo esv variable set');
6
- program.description('Set variable description.').requiredOption('-i, --variable-id <variable-id>', 'Variable id.').option('--value [value]', 'Variable value.').option('--description [description]', 'Variable description.').action(
7
- // implement command logic inside action handler
8
- async (host, realm, user, password, options, command) => {
9
- command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
10
- if (options.variableId && options.value && options.description && (await getTokens())) {
11
- verboseMessage('Updating variable...');
12
- const outcome = await updateVariable(options.variableId, options.value, options.description);
13
- if (!outcome) process.exitCode = 1;
14
- } else if (options.variableId && options.description && (await getTokens())) {
15
- verboseMessage('Updating variable...');
16
- const outcome = await setVariableDescription(options.variableId, options.description);
17
- if (!outcome) process.exitCode = 1;
18
- }
19
- // unrecognized combination of options or no options
20
- else {
21
- printMessage('Provide --variable-id and either one or both of --value and --description.');
22
- program.help();
23
- process.exitCode = 1;
5
+ export default function setup() {
6
+ const program = new FrodoCommand('frodo esv variable set');
7
+ program.description('Set variable description.').requiredOption('-i, --variable-id <variable-id>', 'Variable id.').option('--value [value]', 'Variable value.').option('--description [description]', 'Variable description.').action(
8
+ // implement command logic inside action handler
9
+ async (host, realm, user, password, options, command) => {
10
+ command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
11
+ if (options.variableId && options.value && options.description && (await getTokens())) {
12
+ verboseMessage('Updating variable...');
13
+ const outcome = await updateVariable(options.variableId, options.value, options.description);
14
+ if (!outcome) process.exitCode = 1;
15
+ } else if (options.variableId && options.description && (await getTokens())) {
16
+ verboseMessage('Updating variable...');
17
+ const outcome = await setVariableDescription(options.variableId, options.description);
18
+ if (!outcome) process.exitCode = 1;
19
+ }
20
+ // unrecognized combination of options or no options
21
+ else {
22
+ printMessage('Provide --variable-id and either one or both of --value and --description.');
23
+ program.help();
24
+ process.exitCode = 1;
25
+ }
24
26
  }
27
+ // end command logic inside action handler
28
+ );
29
+ return program;
25
30
  }
26
- // end command logic inside action handler
27
- );
28
- program.parse();
29
31
  //# sourceMappingURL=esv-variable-set.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"esv-variable-set.js","names":["getTokens","setVariableDescription","updateVariable","printMessage","verboseMessage","FrodoCommand","program","description","requiredOption","option","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","value","outcome","process","exitCode","help","parse"],"sources":["../../../src/cli/esv/esv-variable-set.ts"],"sourcesContent":["import { getTokens } from '../../ops/AuthenticateOps';\nimport {\n setVariableDescription,\n updateVariable,\n} from '../../ops/cloud/VariablesOps';\nimport { printMessage, verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nconst program = new FrodoCommand('frodo esv variable set');\n\nprogram\n .description('Set variable description.')\n .requiredOption('-i, --variable-id <variable-id>', 'Variable id.')\n .option('--value [value]', 'Variable value.')\n .option('--description [description]', 'Variable description.')\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (\n options.variableId &&\n options.value &&\n options.description &&\n (await getTokens())\n ) {\n verboseMessage('Updating variable...');\n const outcome = await updateVariable(\n options.variableId,\n options.value,\n options.description\n );\n if (!outcome) process.exitCode = 1;\n } else if (\n options.variableId &&\n options.description &&\n (await getTokens())\n ) {\n verboseMessage('Updating variable...');\n const outcome = await setVariableDescription(\n options.variableId,\n options.description\n );\n if (!outcome) process.exitCode = 1;\n }\n // unrecognized combination of options or no options\n else {\n printMessage(\n 'Provide --variable-id and either one or both of --value and --description.'\n );\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\nprogram.parse();\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,2BAA2B;AACrD,SACEC,sBAAsB,EACtBC,cAAc,QACT,8BAA8B;AACrC,SAASC,YAAY,EAAEC,cAAc,QAAQ,wBAAwB;AACrE,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,MAAMC,OAAO,GAAG,IAAID,YAAY,CAAC,wBAAwB,CAAC;AAE1DC,OAAO,CACJC,WAAW,CAAC,2BAA2B,CAAC,CACxCC,cAAc,CAAC,iCAAiC,EAAE,cAAc,CAAC,CACjEC,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAC5CA,MAAM,CAAC,6BAA6B,EAAE,uBAAuB,CAAC,CAC9DC,MAAM;AACL;AACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;EACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;EACD,IACED,OAAO,CAACG,UAAU,IAClBH,OAAO,CAACI,KAAK,IACbJ,OAAO,CAACR,WAAW,KAClB,MAAMP,SAAS,CAAC,CAAC,CAAC,EACnB;IACAI,cAAc,CAAC,sBAAsB,CAAC;IACtC,MAAMgB,OAAO,GAAG,MAAMlB,cAAc,CAClCa,OAAO,CAACG,UAAU,EAClBH,OAAO,CAACI,KAAK,EACbJ,OAAO,CAACR,WACV,CAAC;IACD,IAAI,CAACa,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC,CAAC,MAAM,IACLP,OAAO,CAACG,UAAU,IAClBH,OAAO,CAACR,WAAW,KAClB,MAAMP,SAAS,CAAC,CAAC,CAAC,EACnB;IACAI,cAAc,CAAC,sBAAsB,CAAC;IACtC,MAAMgB,OAAO,GAAG,MAAMnB,sBAAsB,CAC1Cc,OAAO,CAACG,UAAU,EAClBH,OAAO,CAACR,WACV,CAAC;IACD,IAAI,CAACa,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;EACpC;EACA;EAAA,KACK;IACHnB,YAAY,CACV,4EACF,CAAC;IACDG,OAAO,CAACiB,IAAI,CAAC,CAAC;IACdF,OAAO,CAACC,QAAQ,GAAG,CAAC;EACtB;AACF;AACA;AACF,CAAC;AAEHhB,OAAO,CAACkB,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"esv-variable-set.js","names":["getTokens","setVariableDescription","updateVariable","printMessage","verboseMessage","FrodoCommand","setup","program","description","requiredOption","option","action","host","realm","user","password","options","command","handleDefaultArgsAndOpts","variableId","value","outcome","process","exitCode","help"],"sources":["../../../src/cli/esv/esv-variable-set.ts"],"sourcesContent":["import { getTokens } from '../../ops/AuthenticateOps';\nimport {\n setVariableDescription,\n updateVariable,\n} from '../../ops/cloud/VariablesOps';\nimport { printMessage, verboseMessage } from '../../utils/Console.js';\nimport { FrodoCommand } from '../FrodoCommand';\n\nexport default function setup() {\n const program = new FrodoCommand('frodo esv variable set');\n\n program\n .description('Set variable description.')\n .requiredOption('-i, --variable-id <variable-id>', 'Variable id.')\n .option('--value [value]', 'Variable value.')\n .option('--description [description]', 'Variable description.')\n .action(\n // implement command logic inside action handler\n async (host, realm, user, password, options, command) => {\n command.handleDefaultArgsAndOpts(\n host,\n realm,\n user,\n password,\n options,\n command\n );\n if (\n options.variableId &&\n options.value &&\n options.description &&\n (await getTokens())\n ) {\n verboseMessage('Updating variable...');\n const outcome = await updateVariable(\n options.variableId,\n options.value,\n options.description\n );\n if (!outcome) process.exitCode = 1;\n } else if (\n options.variableId &&\n options.description &&\n (await getTokens())\n ) {\n verboseMessage('Updating variable...');\n const outcome = await setVariableDescription(\n options.variableId,\n options.description\n );\n if (!outcome) process.exitCode = 1;\n }\n // unrecognized combination of options or no options\n else {\n printMessage(\n 'Provide --variable-id and either one or both of --value and --description.'\n );\n program.help();\n process.exitCode = 1;\n }\n }\n // end command logic inside action handler\n );\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,2BAA2B;AACrD,SACEC,sBAAsB,EACtBC,cAAc,QACT,8BAA8B;AACrC,SAASC,YAAY,EAAEC,cAAc,QAAQ,wBAAwB;AACrE,SAASC,YAAY,QAAQ,iBAAiB;AAE9C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIF,YAAY,CAAC,wBAAwB,CAAC;EAE1DE,OAAO,CACJC,WAAW,CAAC,2BAA2B,CAAC,CACxCC,cAAc,CAAC,iCAAiC,EAAE,cAAc,CAAC,CACjEC,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAC5CA,MAAM,CAAC,6BAA6B,EAAE,uBAAuB,CAAC,CAC9DC,MAAM;EACL;EACA,OAAOC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,KAAK;IACvDA,OAAO,CAACC,wBAAwB,CAC9BN,IAAI,EACJC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,OACF,CAAC;IACD,IACED,OAAO,CAACG,UAAU,IAClBH,OAAO,CAACI,KAAK,IACbJ,OAAO,CAACR,WAAW,KAClB,MAAMR,SAAS,CAAC,CAAC,CAAC,EACnB;MACAI,cAAc,CAAC,sBAAsB,CAAC;MACtC,MAAMiB,OAAO,GAAG,MAAMnB,cAAc,CAClCc,OAAO,CAACG,UAAU,EAClBH,OAAO,CAACI,KAAK,EACbJ,OAAO,CAACR,WACV,CAAC;MACD,IAAI,CAACa,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC,CAAC,MAAM,IACLP,OAAO,CAACG,UAAU,IAClBH,OAAO,CAACR,WAAW,KAClB,MAAMR,SAAS,CAAC,CAAC,CAAC,EACnB;MACAI,cAAc,CAAC,sBAAsB,CAAC;MACtC,MAAMiB,OAAO,GAAG,MAAMpB,sBAAsB,CAC1Ce,OAAO,CAACG,UAAU,EAClBH,OAAO,CAACR,WACV,CAAC;MACD,IAAI,CAACa,OAAO,EAAEC,OAAO,CAACC,QAAQ,GAAG,CAAC;IACpC;IACA;IAAA,KACK;MACHpB,YAAY,CACV,4EACF,CAAC;MACDI,OAAO,CAACiB,IAAI,CAAC,CAAC;MACdF,OAAO,CAACC,QAAQ,GAAG,CAAC;IACtB;EACF;EACA;EACF,CAAC;EAEH,OAAOhB,OAAO;AAChB"}
@@ -1,14 +1,23 @@
1
1
  import { FrodoStubCommand } from '../FrodoCommand';
2
- const program = new FrodoStubCommand('frodo esv variable');
3
- program.description('Manage variables.');
4
- program.command('create', 'Create variables.');
5
- program.command('delete', 'Delete variables.');
6
- program.command('describe', 'Describe variables.');
7
- program.command('export', 'Export variables.');
2
+ import CreateCmd from './esv-variable-create.js';
3
+ // import ImportCmd from './esv-variable-import.js';
4
+ import DeleteCmd from './esv-variable-delete.js';
5
+ import DescribeCmd from './esv-variable-describe.js';
6
+ import ExportCmd from './esv-variable-export.js';
7
+ import ListCmd from './esv-variable-list.js';
8
+ import SetCmd from './esv-variable-set.js';
9
+ export default function setup() {
10
+ const program = new FrodoStubCommand('frodo esv variable');
11
+ program.description('Manage variables.');
12
+ program.addCommand(CreateCmd().name('create'));
13
+ program.addCommand(DeleteCmd().name('delete'));
14
+ program.addCommand(DescribeCmd().name('describe'));
15
+ program.addCommand(ExportCmd().name('export'));
8
16
 
9
- // program.command('import', 'Import variables.');
17
+ // program.addCommand(ImportCmd().name('import'));
10
18
 
11
- program.command('list', 'List variables.');
12
- program.command('set', 'Set variable descriptions.');
13
- program.parse();
19
+ program.addCommand(ListCmd().name('list'));
20
+ program.addCommand(SetCmd().name('set'));
21
+ return program;
22
+ }
14
23
  //# sourceMappingURL=esv-variable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"esv-variable.js","names":["FrodoStubCommand","program","description","command","parse"],"sources":["../../../src/cli/esv/esv-variable.ts"],"sourcesContent":["import { FrodoStubCommand } from '../FrodoCommand';\n\nconst program = new FrodoStubCommand('frodo esv variable');\n\nprogram.description('Manage variables.');\n\nprogram.command('create', 'Create variables.');\n\nprogram.command('delete', 'Delete variables.');\n\nprogram.command('describe', 'Describe variables.');\n\nprogram.command('export', 'Export variables.');\n\n// program.command('import', 'Import variables.');\n\nprogram.command('list', 'List variables.');\n\nprogram.command('set', 'Set variable descriptions.');\n\nprogram.parse();\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,iBAAiB;AAElD,MAAMC,OAAO,GAAG,IAAID,gBAAgB,CAAC,oBAAoB,CAAC;AAE1DC,OAAO,CAACC,WAAW,CAAC,mBAAmB,CAAC;AAExCD,OAAO,CAACE,OAAO,CAAC,QAAQ,EAAE,mBAAmB,CAAC;AAE9CF,OAAO,CAACE,OAAO,CAAC,QAAQ,EAAE,mBAAmB,CAAC;AAE9CF,OAAO,CAACE,OAAO,CAAC,UAAU,EAAE,qBAAqB,CAAC;AAElDF,OAAO,CAACE,OAAO,CAAC,QAAQ,EAAE,mBAAmB,CAAC;;AAE9C;;AAEAF,OAAO,CAACE,OAAO,CAAC,MAAM,EAAE,iBAAiB,CAAC;AAE1CF,OAAO,CAACE,OAAO,CAAC,KAAK,EAAE,4BAA4B,CAAC;AAEpDF,OAAO,CAACG,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"esv-variable.js","names":["FrodoStubCommand","CreateCmd","DeleteCmd","DescribeCmd","ExportCmd","ListCmd","SetCmd","setup","program","description","addCommand","name"],"sources":["../../../src/cli/esv/esv-variable.ts"],"sourcesContent":["import { FrodoStubCommand } from '../FrodoCommand';\nimport CreateCmd from './esv-variable-create.js';\n// import ImportCmd from './esv-variable-import.js';\nimport DeleteCmd from './esv-variable-delete.js';\nimport DescribeCmd from './esv-variable-describe.js';\nimport ExportCmd from './esv-variable-export.js';\nimport ListCmd from './esv-variable-list.js';\nimport SetCmd from './esv-variable-set.js';\n\nexport default function setup() {\n const program = new FrodoStubCommand('frodo esv variable');\n\n program.description('Manage variables.');\n\n program.addCommand(CreateCmd().name('create'));\n\n program.addCommand(DeleteCmd().name('delete'));\n\n program.addCommand(DescribeCmd().name('describe'));\n\n program.addCommand(ExportCmd().name('export'));\n\n // program.addCommand(ImportCmd().name('import'));\n\n program.addCommand(ListCmd().name('list'));\n\n program.addCommand(SetCmd().name('set'));\n\n return program;\n}\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,iBAAiB;AAClD,OAAOC,SAAS,MAAM,0BAA0B;AAChD;AACA,OAAOC,SAAS,MAAM,0BAA0B;AAChD,OAAOC,WAAW,MAAM,4BAA4B;AACpD,OAAOC,SAAS,MAAM,0BAA0B;AAChD,OAAOC,OAAO,MAAM,wBAAwB;AAC5C,OAAOC,MAAM,MAAM,uBAAuB;AAE1C,eAAe,SAASC,KAAKA,CAAA,EAAG;EAC9B,MAAMC,OAAO,GAAG,IAAIR,gBAAgB,CAAC,oBAAoB,CAAC;EAE1DQ,OAAO,CAACC,WAAW,CAAC,mBAAmB,CAAC;EAExCD,OAAO,CAACE,UAAU,CAACT,SAAS,CAAC,CAAC,CAACU,IAAI,CAAC,QAAQ,CAAC,CAAC;EAE9CH,OAAO,CAACE,UAAU,CAACR,SAAS,CAAC,CAAC,CAACS,IAAI,CAAC,QAAQ,CAAC,CAAC;EAE9CH,OAAO,CAACE,UAAU,CAACP,WAAW,CAAC,CAAC,CAACQ,IAAI,CAAC,UAAU,CAAC,CAAC;EAElDH,OAAO,CAACE,UAAU,CAACN,SAAS,CAAC,CAAC,CAACO,IAAI,CAAC,QAAQ,CAAC,CAAC;;EAE9C;;EAEAH,OAAO,CAACE,UAAU,CAACL,OAAO,CAAC,CAAC,CAACM,IAAI,CAAC,MAAM,CAAC,CAAC;EAE1CH,OAAO,CAACE,UAAU,CAACJ,MAAM,CAAC,CAAC,CAACK,IAAI,CAAC,KAAK,CAAC,CAAC;EAExC,OAAOH,OAAO;AAChB"}