@webiny/cli-core 0.0.0-unstable.61c048f412

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 (369) hide show
  1. package/Cli.d.ts +7 -0
  2. package/Cli.js +16 -0
  3. package/Cli.js.map +1 -0
  4. package/LICENSE +21 -0
  5. package/README.md +11 -0
  6. package/abstractions/createAbstraction.d.ts +2 -0
  7. package/abstractions/createAbstraction.js +6 -0
  8. package/abstractions/createAbstraction.js.map +1 -0
  9. package/abstractions/features/CliCommand.d.ts +37 -0
  10. package/abstractions/features/CliCommand.js +4 -0
  11. package/abstractions/features/CliCommand.js.map +1 -0
  12. package/abstractions/features/ErrorHandler.d.ts +15 -0
  13. package/abstractions/features/ErrorHandler.js +4 -0
  14. package/abstractions/features/ErrorHandler.js.map +1 -0
  15. package/abstractions/features/GlobalCliOption.d.ts +20 -0
  16. package/abstractions/features/GlobalCliOption.js +4 -0
  17. package/abstractions/features/GlobalCliOption.js.map +1 -0
  18. package/abstractions/features/IsCi.d.ts +8 -0
  19. package/abstractions/features/IsCi.js +4 -0
  20. package/abstractions/features/IsCi.js.map +1 -0
  21. package/abstractions/features/index.d.ts +4 -0
  22. package/abstractions/features/index.js +6 -0
  23. package/abstractions/features/index.js.map +1 -0
  24. package/abstractions/features/types.d.ts +8 -0
  25. package/abstractions/features/types.js +3 -0
  26. package/abstractions/features/types.js.map +1 -0
  27. package/abstractions/index.d.ts +2 -0
  28. package/abstractions/index.js +4 -0
  29. package/abstractions/index.js.map +1 -0
  30. package/abstractions/services/ArgvParserService.d.ts +7 -0
  31. package/abstractions/services/ArgvParserService.js +4 -0
  32. package/abstractions/services/ArgvParserService.js.map +1 -0
  33. package/abstractions/services/CliParamsService.d.ts +15 -0
  34. package/abstractions/services/CliParamsService.js +4 -0
  35. package/abstractions/services/CliParamsService.js.map +1 -0
  36. package/abstractions/services/CommandsRegistryService.d.ts +8 -0
  37. package/abstractions/services/CommandsRegistryService.js +4 -0
  38. package/abstractions/services/CommandsRegistryService.js.map +1 -0
  39. package/abstractions/services/GetArgvService.d.ts +7 -0
  40. package/abstractions/services/GetArgvService.js +4 -0
  41. package/abstractions/services/GetArgvService.js.map +1 -0
  42. package/abstractions/services/GetCliRunnerService.d.ts +7 -0
  43. package/abstractions/services/GetCliRunnerService.js +4 -0
  44. package/abstractions/services/GetCliRunnerService.js.map +1 -0
  45. package/abstractions/services/GetIsCiService.d.ts +8 -0
  46. package/abstractions/services/GetIsCiService.js +4 -0
  47. package/abstractions/services/GetIsCiService.js.map +1 -0
  48. package/abstractions/services/GetProjectSdkService.d.ts +8 -0
  49. package/abstractions/services/GetProjectSdkService.js +4 -0
  50. package/abstractions/services/GetProjectSdkService.js.map +1 -0
  51. package/abstractions/services/GlobalOptionsRegistryService.d.ts +8 -0
  52. package/abstractions/services/GlobalOptionsRegistryService.js +4 -0
  53. package/abstractions/services/GlobalOptionsRegistryService.js.map +1 -0
  54. package/abstractions/services/LoggerService.d.ts +13 -0
  55. package/abstractions/services/LoggerService.js +4 -0
  56. package/abstractions/services/LoggerService.js.map +1 -0
  57. package/abstractions/services/RunCliRunnerService.d.ts +7 -0
  58. package/abstractions/services/RunCliRunnerService.js +4 -0
  59. package/abstractions/services/RunCliRunnerService.js.map +1 -0
  60. package/abstractions/services/StdioService.d.ts +9 -0
  61. package/abstractions/services/StdioService.js +4 -0
  62. package/abstractions/services/StdioService.js.map +1 -0
  63. package/abstractions/services/UiService.d.ts +15 -0
  64. package/abstractions/services/UiService.js +4 -0
  65. package/abstractions/services/UiService.js.map +1 -0
  66. package/abstractions/services/index.d.ts +12 -0
  67. package/abstractions/services/index.js +14 -0
  68. package/abstractions/services/index.js.map +1 -0
  69. package/createCliContainer.d.ts +3 -0
  70. package/createCliContainer.js +128 -0
  71. package/createCliContainer.js.map +1 -0
  72. package/decorators/CommandsWithGracefulErrorHandling.d.ts +10 -0
  73. package/decorators/CommandsWithGracefulErrorHandling.js +38 -0
  74. package/decorators/CommandsWithGracefulErrorHandling.js.map +1 -0
  75. package/decorators/DeployCommandWithTelemetry.d.ts +11 -0
  76. package/decorators/DeployCommandWithTelemetry.js +91 -0
  77. package/decorators/DeployCommandWithTelemetry.js.map +1 -0
  78. package/decorators/index.d.ts +2 -0
  79. package/decorators/index.js +4 -0
  80. package/decorators/index.js.map +1 -0
  81. package/exports/cli/command.d.ts +1 -0
  82. package/exports/cli/command.js +3 -0
  83. package/exports/cli/command.js.map +1 -0
  84. package/exports/cli/index.d.ts +2 -0
  85. package/exports/cli/index.js +4 -0
  86. package/exports/cli/index.js.map +1 -0
  87. package/extensions/CliCommand.d.ts +8 -0
  88. package/extensions/CliCommand.js +23 -0
  89. package/extensions/CliCommand.js.map +1 -0
  90. package/extensions/CliCommandDecorator.d.ts +8 -0
  91. package/extensions/CliCommandDecorator.js +23 -0
  92. package/extensions/CliCommandDecorator.js.map +1 -0
  93. package/extensions/index.d.ts +9 -0
  94. package/extensions/index.js +6 -0
  95. package/extensions/index.js.map +1 -0
  96. package/features/AboutCommand.d.ts +12 -0
  97. package/features/AboutCommand.js +94 -0
  98. package/features/AboutCommand.js.map +1 -0
  99. package/features/BuildCommand/BuildCommand.d.ts +11 -0
  100. package/features/BuildCommand/BuildCommand.js +44 -0
  101. package/features/BuildCommand/BuildCommand.js.map +1 -0
  102. package/features/BuildCommand/buildRunners/BaseBuildRunner.d.ts +14 -0
  103. package/features/BuildCommand/buildRunners/BaseBuildRunner.js +16 -0
  104. package/features/BuildCommand/buildRunners/BaseBuildRunner.js.map +1 -0
  105. package/features/BuildCommand/buildRunners/BuildRunner.d.ts +6 -0
  106. package/features/BuildCommand/buildRunners/BuildRunner.js +30 -0
  107. package/features/BuildCommand/buildRunners/BuildRunner.js.map +1 -0
  108. package/features/BuildCommand/buildRunners/MultipleBuildsRunner.d.ts +4 -0
  109. package/features/BuildCommand/buildRunners/MultipleBuildsRunner.js +25 -0
  110. package/features/BuildCommand/buildRunners/MultipleBuildsRunner.js.map +1 -0
  111. package/features/BuildCommand/buildRunners/SingleBuildRunner.d.ts +4 -0
  112. package/features/BuildCommand/buildRunners/SingleBuildRunner.js +19 -0
  113. package/features/BuildCommand/buildRunners/SingleBuildRunner.js.map +1 -0
  114. package/features/BuildCommand/buildRunners/ZeroBuildsRunner.d.ts +4 -0
  115. package/features/BuildCommand/buildRunners/ZeroBuildsRunner.js +8 -0
  116. package/features/BuildCommand/buildRunners/ZeroBuildsRunner.js.map +1 -0
  117. package/features/BuildCommand/index.d.ts +1 -0
  118. package/features/BuildCommand/index.js +3 -0
  119. package/features/BuildCommand/index.js.map +1 -0
  120. package/features/ConfigCommand.d.ts +16 -0
  121. package/features/ConfigCommand.js +64 -0
  122. package/features/ConfigCommand.js.map +1 -0
  123. package/features/DeployCommand/DeployCommand.d.ts +30 -0
  124. package/features/DeployCommand/DeployCommand.js +168 -0
  125. package/features/DeployCommand/DeployCommand.js.map +1 -0
  126. package/features/DeployCommand/deployOutputs/BaseDeployOutput.d.ts +20 -0
  127. package/features/DeployCommand/deployOutputs/BaseDeployOutput.js +20 -0
  128. package/features/DeployCommand/deployOutputs/BaseDeployOutput.js.map +1 -0
  129. package/features/DeployCommand/deployOutputs/DeployOutput.d.ts +5 -0
  130. package/features/DeployCommand/deployOutputs/DeployOutput.js +24 -0
  131. package/features/DeployCommand/deployOutputs/DeployOutput.js.map +1 -0
  132. package/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.d.ts +4 -0
  133. package/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.js +61 -0
  134. package/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.js.map +1 -0
  135. package/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.d.ts +4 -0
  136. package/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.js +44 -0
  137. package/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.js.map +1 -0
  138. package/features/DeployCommand/index.d.ts +1 -0
  139. package/features/DeployCommand/index.js +3 -0
  140. package/features/DeployCommand/index.js.map +1 -0
  141. package/features/DepsSync/BuildDependencyTree.d.ts +9 -0
  142. package/features/DepsSync/BuildDependencyTree.js +27 -0
  143. package/features/DepsSync/BuildDependencyTree.js.map +1 -0
  144. package/features/DepsSync/DependencyTree.d.ts +12 -0
  145. package/features/DepsSync/DependencyTree.js +131 -0
  146. package/features/DepsSync/DependencyTree.js.map +1 -0
  147. package/features/DepsSync/ListAllPackageJsonFiles.d.ts +7 -0
  148. package/features/DepsSync/ListAllPackageJsonFiles.js +18 -0
  149. package/features/DepsSync/ListAllPackageJsonFiles.js.map +1 -0
  150. package/features/DepsSync/ListAllPackages.d.ts +3 -0
  151. package/features/DepsSync/ListAllPackages.js +13 -0
  152. package/features/DepsSync/ListAllPackages.js.map +1 -0
  153. package/features/DepsSync/commands/SyncDepsCommand.d.ts +13 -0
  154. package/features/DepsSync/commands/SyncDepsCommand.js +32 -0
  155. package/features/DepsSync/commands/SyncDepsCommand.js.map +1 -0
  156. package/features/DepsSync/commands/VerifyDepsCommand.d.ts +13 -0
  157. package/features/DepsSync/commands/VerifyDepsCommand.js +81 -0
  158. package/features/DepsSync/commands/VerifyDepsCommand.js.map +1 -0
  159. package/features/DepsSync/createDependencyTree.d.ts +3 -0
  160. package/features/DepsSync/createDependencyTree.js +24 -0
  161. package/features/DepsSync/createDependencyTree.js.map +1 -0
  162. package/features/DepsSync/createReferenceFile.d.ts +7 -0
  163. package/features/DepsSync/createReferenceFile.js +30 -0
  164. package/features/DepsSync/createReferenceFile.js.map +1 -0
  165. package/features/DepsSync/index.d.ts +2 -0
  166. package/features/DepsSync/index.js +4 -0
  167. package/features/DepsSync/index.js.map +1 -0
  168. package/features/DepsSync/paths.d.ts +3 -0
  169. package/features/DepsSync/paths.js +8 -0
  170. package/features/DepsSync/paths.js.map +1 -0
  171. package/features/DepsSync/types.d.ts +45 -0
  172. package/features/DepsSync/types.js +9 -0
  173. package/features/DepsSync/types.js.map +1 -0
  174. package/features/DestroyCommand/DestroyCommand.d.ts +22 -0
  175. package/features/DestroyCommand/DestroyCommand.js +78 -0
  176. package/features/DestroyCommand/DestroyCommand.js.map +1 -0
  177. package/features/DestroyCommand/index.d.ts +1 -0
  178. package/features/DestroyCommand/index.js +3 -0
  179. package/features/DestroyCommand/index.js.map +1 -0
  180. package/features/DisableTelemetryCommand.d.ts +11 -0
  181. package/features/DisableTelemetryCommand.js +31 -0
  182. package/features/DisableTelemetryCommand.js.map +1 -0
  183. package/features/EnableTelemetryCommand.d.ts +11 -0
  184. package/features/EnableTelemetryCommand.js +31 -0
  185. package/features/EnableTelemetryCommand.js.map +1 -0
  186. package/features/ExtensionCommand/ExtensionCommand.d.ts +12 -0
  187. package/features/ExtensionCommand/ExtensionCommand.js +71 -0
  188. package/features/ExtensionCommand/ExtensionCommand.js.map +1 -0
  189. package/features/ExtensionCommand/index.d.ts +1 -0
  190. package/features/ExtensionCommand/index.js +3 -0
  191. package/features/ExtensionCommand/index.js.map +1 -0
  192. package/features/InfoCommand/InfoCommand.d.ts +10 -0
  193. package/features/InfoCommand/InfoCommand.js +64 -0
  194. package/features/InfoCommand/InfoCommand.js.map +1 -0
  195. package/features/InfoCommand/PrintInfoForEnv.d.ts +14 -0
  196. package/features/InfoCommand/PrintInfoForEnv.js +48 -0
  197. package/features/InfoCommand/PrintInfoForEnv.js.map +1 -0
  198. package/features/InfoCommand/index.d.ts +1 -0
  199. package/features/InfoCommand/index.js +3 -0
  200. package/features/InfoCommand/index.js.map +1 -0
  201. package/features/IsCi/IsCi.d.ts +7 -0
  202. package/features/IsCi/IsCi.js +17 -0
  203. package/features/IsCi/IsCi.js.map +1 -0
  204. package/features/IsCi/index.d.ts +1 -0
  205. package/features/IsCi/index.js +3 -0
  206. package/features/IsCi/index.js.map +1 -0
  207. package/features/OpenCommand.d.ts +10 -0
  208. package/features/OpenCommand.js +54 -0
  209. package/features/OpenCommand.js.map +1 -0
  210. package/features/OutputCommand.d.ts +12 -0
  211. package/features/OutputCommand.js +79 -0
  212. package/features/OutputCommand.js.map +1 -0
  213. package/features/PulumiCommand/PulumiCommand.d.ts +13 -0
  214. package/features/PulumiCommand/PulumiCommand.js +50 -0
  215. package/features/PulumiCommand/PulumiCommand.js.map +1 -0
  216. package/features/PulumiCommand/index.d.ts +1 -0
  217. package/features/PulumiCommand/index.js +3 -0
  218. package/features/PulumiCommand/index.js.map +1 -0
  219. package/features/RefreshCommand/RefreshCommand.d.ts +12 -0
  220. package/features/RefreshCommand/RefreshCommand.js +45 -0
  221. package/features/RefreshCommand/RefreshCommand.js.map +1 -0
  222. package/features/RefreshCommand/index.d.ts +1 -0
  223. package/features/RefreshCommand/index.js +3 -0
  224. package/features/RefreshCommand/index.js.map +1 -0
  225. package/features/WatchCommand/WatchCommand.d.ts +11 -0
  226. package/features/WatchCommand/WatchCommand.js +143 -0
  227. package/features/WatchCommand/WatchCommand.js.map +1 -0
  228. package/features/WatchCommand/createPrefixer.d.ts +2 -0
  229. package/features/WatchCommand/createPrefixer.js +20 -0
  230. package/features/WatchCommand/createPrefixer.js.map +1 -0
  231. package/features/WatchCommand/getRandomColorForString.d.ts +1 -0
  232. package/features/WatchCommand/getRandomColorForString.js +11 -0
  233. package/features/WatchCommand/getRandomColorForString.js.map +1 -0
  234. package/features/WatchCommand/index.d.ts +1 -0
  235. package/features/WatchCommand/index.js +3 -0
  236. package/features/WatchCommand/index.js.map +1 -0
  237. package/features/Wcp/LinkProjectCommand.d.ts +13 -0
  238. package/features/Wcp/LinkProjectCommand.js +146 -0
  239. package/features/Wcp/LinkProjectCommand.js.map +1 -0
  240. package/features/Wcp/LoginCommand.d.ts +13 -0
  241. package/features/Wcp/LoginCommand.js +126 -0
  242. package/features/Wcp/LoginCommand.js.map +1 -0
  243. package/features/Wcp/LogoutCommand.d.ts +13 -0
  244. package/features/Wcp/LogoutCommand.js +29 -0
  245. package/features/Wcp/LogoutCommand.js.map +1 -0
  246. package/features/Wcp/WhoAmICommand.d.ts +15 -0
  247. package/features/Wcp/WhoAmICommand.js +34 -0
  248. package/features/Wcp/WhoAmICommand.js.map +1 -0
  249. package/features/common/index.d.ts +1 -0
  250. package/features/common/index.js +3 -0
  251. package/features/common/index.js.map +1 -0
  252. package/features/common/options.d.ts +20 -0
  253. package/features/common/options.js +52 -0
  254. package/features/common/options.js.map +1 -0
  255. package/features/globalOptions/LogLevelGlobalOption.d.ts +5 -0
  256. package/features/globalOptions/LogLevelGlobalOption.js +22 -0
  257. package/features/globalOptions/LogLevelGlobalOption.js.map +1 -0
  258. package/features/globalOptions/ShowLogsGlobalOption.d.ts +5 -0
  259. package/features/globalOptions/ShowLogsGlobalOption.js +21 -0
  260. package/features/globalOptions/ShowLogsGlobalOption.js.map +1 -0
  261. package/features/globalOptions/StackTraceGlobalOption.d.ts +5 -0
  262. package/features/globalOptions/StackTraceGlobalOption.js +21 -0
  263. package/features/globalOptions/StackTraceGlobalOption.js.map +1 -0
  264. package/features/globalOptions/index.d.ts +3 -0
  265. package/features/globalOptions/index.js +5 -0
  266. package/features/globalOptions/index.js.map +1 -0
  267. package/features/gracefulErrorHandlers/DdbPutItemConditionalCheckFailedGracefulErrorHandler.d.ts +6 -0
  268. package/features/gracefulErrorHandlers/DdbPutItemConditionalCheckFailedGracefulErrorHandler.js +26 -0
  269. package/features/gracefulErrorHandlers/DdbPutItemConditionalCheckFailedGracefulErrorHandler.js.map +1 -0
  270. package/features/gracefulErrorHandlers/MissingFilesInBuildGracefulErrorHandler.d.ts +6 -0
  271. package/features/gracefulErrorHandlers/MissingFilesInBuildGracefulErrorHandler.js +27 -0
  272. package/features/gracefulErrorHandlers/MissingFilesInBuildGracefulErrorHandler.js.map +1 -0
  273. package/features/gracefulErrorHandlers/PendingOperationsGracefulErrorHandler.d.ts +6 -0
  274. package/features/gracefulErrorHandlers/PendingOperationsGracefulErrorHandler.js +29 -0
  275. package/features/gracefulErrorHandlers/PendingOperationsGracefulErrorHandler.js.map +1 -0
  276. package/features/gracefulErrorHandlers/index.d.ts +3 -0
  277. package/features/gracefulErrorHandlers/index.js +5 -0
  278. package/features/gracefulErrorHandlers/index.js.map +1 -0
  279. package/features/index.d.ts +22 -0
  280. package/features/index.js +24 -0
  281. package/features/index.js.map +1 -0
  282. package/features/utils/index.d.ts +1 -0
  283. package/features/utils/index.js +3 -0
  284. package/features/utils/index.js.map +1 -0
  285. package/features/utils/measureDuration.d.ts +1 -0
  286. package/features/utils/measureDuration.js +11 -0
  287. package/features/utils/measureDuration.js.map +1 -0
  288. package/index.d.ts +1 -0
  289. package/index.js +3 -0
  290. package/index.js.map +1 -0
  291. package/package.json +48 -0
  292. package/services/ArgvParserService/ArgvParserService.d.ts +7 -0
  293. package/services/ArgvParserService/ArgvParserService.js +41 -0
  294. package/services/ArgvParserService/ArgvParserService.js.map +1 -0
  295. package/services/ArgvParserService/index.d.ts +1 -0
  296. package/services/ArgvParserService/index.js +3 -0
  297. package/services/ArgvParserService/index.js.map +1 -0
  298. package/services/CliParamsService/CliParamsService.d.ts +7 -0
  299. package/services/CliParamsService/CliParamsService.js +21 -0
  300. package/services/CliParamsService/CliParamsService.js.map +1 -0
  301. package/services/CliParamsService/index.d.ts +1 -0
  302. package/services/CliParamsService/index.js +3 -0
  303. package/services/CliParamsService/index.js.map +1 -0
  304. package/services/CommandsRegistryService/CommandsRegistryService.d.ts +7 -0
  305. package/services/CommandsRegistryService/CommandsRegistryService.js +19 -0
  306. package/services/CommandsRegistryService/CommandsRegistryService.js.map +1 -0
  307. package/services/CommandsRegistryService/index.d.ts +1 -0
  308. package/services/CommandsRegistryService/index.js +3 -0
  309. package/services/CommandsRegistryService/index.js.map +1 -0
  310. package/services/GetArgvService/GetArgvService.d.ts +7 -0
  311. package/services/GetArgvService/GetArgvService.js +17 -0
  312. package/services/GetArgvService/GetArgvService.js.map +1 -0
  313. package/services/GetArgvService/index.d.ts +1 -0
  314. package/services/GetArgvService/index.js +3 -0
  315. package/services/GetArgvService/index.js.map +1 -0
  316. package/services/GetCliRunnerService/GetCliRunnerService.d.ts +13 -0
  317. package/services/GetCliRunnerService/GetCliRunnerService.js +160 -0
  318. package/services/GetCliRunnerService/GetCliRunnerService.js.map +1 -0
  319. package/services/GetCliRunnerService/index.d.ts +1 -0
  320. package/services/GetCliRunnerService/index.js +3 -0
  321. package/services/GetCliRunnerService/index.js.map +1 -0
  322. package/services/GetIsCiService/GetIsCiService.d.ts +5 -0
  323. package/services/GetIsCiService/GetIsCiService.js +15 -0
  324. package/services/GetIsCiService/GetIsCiService.js.map +1 -0
  325. package/services/GetIsCiService/index.d.ts +1 -0
  326. package/services/GetIsCiService/index.js +3 -0
  327. package/services/GetIsCiService/index.js.map +1 -0
  328. package/services/GetProjectSdkService/GetProjectSdkService.d.ts +9 -0
  329. package/services/GetProjectSdkService/GetProjectSdkService.js +31 -0
  330. package/services/GetProjectSdkService/GetProjectSdkService.js.map +1 -0
  331. package/services/GetProjectSdkService/index.d.ts +1 -0
  332. package/services/GetProjectSdkService/index.js +3 -0
  333. package/services/GetProjectSdkService/index.js.map +1 -0
  334. package/services/GlobalOptionsRegistryService/GlobalOptionsRegistryService.d.ts +7 -0
  335. package/services/GlobalOptionsRegistryService/GlobalOptionsRegistryService.js +19 -0
  336. package/services/GlobalOptionsRegistryService/GlobalOptionsRegistryService.js.map +1 -0
  337. package/services/GlobalOptionsRegistryService/index.d.ts +1 -0
  338. package/services/GlobalOptionsRegistryService/index.js +3 -0
  339. package/services/GlobalOptionsRegistryService/index.js.map +1 -0
  340. package/services/LoggerService/LoggerService.d.ts +18 -0
  341. package/services/LoggerService/LoggerService.js +100 -0
  342. package/services/LoggerService/LoggerService.js.map +1 -0
  343. package/services/LoggerService/index.d.ts +1 -0
  344. package/services/LoggerService/index.js +3 -0
  345. package/services/LoggerService/index.js.map +1 -0
  346. package/services/RunCliRunnerService/RunCliRunnerService.d.ts +11 -0
  347. package/services/RunCliRunnerService/RunCliRunnerService.js +20 -0
  348. package/services/RunCliRunnerService/RunCliRunnerService.js.map +1 -0
  349. package/services/RunCliRunnerService/index.d.ts +1 -0
  350. package/services/RunCliRunnerService/index.js +3 -0
  351. package/services/RunCliRunnerService/index.js.map +1 -0
  352. package/services/StdioService/StdioService.d.ts +13 -0
  353. package/services/StdioService/StdioService.js +20 -0
  354. package/services/StdioService/StdioService.js.map +1 -0
  355. package/services/StdioService/index.d.ts +1 -0
  356. package/services/StdioService/index.js +3 -0
  357. package/services/StdioService/index.js.map +1 -0
  358. package/services/UiService/UiService.d.ts +17 -0
  359. package/services/UiService/UiService.js +70 -0
  360. package/services/UiService/UiService.js.map +1 -0
  361. package/services/UiService/index.d.ts +1 -0
  362. package/services/UiService/index.js +3 -0
  363. package/services/UiService/index.js.map +1 -0
  364. package/services/index.d.ts +12 -0
  365. package/services/index.js +14 -0
  366. package/services/index.js.map +1 -0
  367. package/utils/ManuallyReportedError.d.ts +3 -0
  368. package/utils/ManuallyReportedError.js +9 -0
  369. package/utils/ManuallyReportedError.js.map +1 -0
package/Cli.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { CliParamsService } from "./abstractions/index.js";
2
+ export declare class Cli {
3
+ private container;
4
+ private constructor();
5
+ run(): any;
6
+ static init(params?: CliParamsService.Params): Promise<Cli>;
7
+ }
package/Cli.js ADDED
@@ -0,0 +1,16 @@
1
+ import { createCliContainer } from "./createCliContainer.js";
2
+ import { RunCliRunnerService } from "./abstractions/index.js";
3
+ export class Cli {
4
+ constructor(container) {
5
+ this.container = container;
6
+ }
7
+ run() {
8
+ return this.container.resolve(RunCliRunnerService).execute();
9
+ }
10
+ static async init(params = {}) {
11
+ const container = await createCliContainer(params);
12
+ return new Cli(container);
13
+ }
14
+ }
15
+
16
+ //# sourceMappingURL=Cli.js.map
package/Cli.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createCliContainer","RunCliRunnerService","Cli","constructor","container","run","resolve","execute","init","params"],"sources":["Cli.ts"],"sourcesContent":["import { Container } from \"@webiny/di\";\nimport { createCliContainer } from \"./createCliContainer.js\";\nimport { CliParamsService, RunCliRunnerService } from \"~/abstractions/index.js\";\n\nexport class Cli {\n private container: Container;\n\n private constructor(container: Container) {\n this.container = container;\n }\n\n run() {\n return this.container.resolve(RunCliRunnerService).execute();\n }\n\n static async init(params: CliParamsService.Params = {}) {\n const container = await createCliContainer(params);\n return new Cli(container);\n }\n}\n"],"mappings":"AACA,SAASA,kBAAkB;AAC3B,SAA2BC,mBAAmB;AAE9C,OAAO,MAAMC,GAAG,CAAC;EAGLC,WAAWA,CAACC,SAAoB,EAAE;IACtC,IAAI,CAACA,SAAS,GAAGA,SAAS;EAC9B;EAEAC,GAAGA,CAAA,EAAG;IACF,OAAO,IAAI,CAACD,SAAS,CAACE,OAAO,CAACL,mBAAmB,CAAC,CAACM,OAAO,CAAC,CAAC;EAChE;EAEA,aAAaC,IAAIA,CAACC,MAA+B,GAAG,CAAC,CAAC,EAAE;IACpD,MAAML,SAAS,GAAG,MAAMJ,kBAAkB,CAACS,MAAM,CAAC;IAClD,OAAO,IAAIP,GAAG,CAACE,SAAS,CAAC;EAC7B;AACJ","ignoreList":[]}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Webiny
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @webiny/cli-core
2
+
3
+ > [!NOTE]
4
+ > This package is part of the [Webiny](https://www.webiny.com) monorepo.
5
+ > It’s **included in every Webiny project by default** and is not meant to be used as a standalone package.
6
+
7
+ 📘 **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
8
+
9
+ ---
10
+
11
+ _This README file is automatically generated during the publish process._
@@ -0,0 +1,2 @@
1
+ import { Abstraction } from "@webiny/di";
2
+ export declare function createAbstraction<T>(name: string): Abstraction<T>;
@@ -0,0 +1,6 @@
1
+ import { Abstraction } from "@webiny/di";
2
+ export function createAbstraction(name) {
3
+ return new Abstraction(name);
4
+ }
5
+
6
+ //# sourceMappingURL=createAbstraction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Abstraction","createAbstraction","name"],"sources":["createAbstraction.ts"],"sourcesContent":["import { Abstraction } from \"@webiny/di\";\n\nexport function createAbstraction<T>(name: string): Abstraction<T> {\n return new Abstraction<T>(name);\n}\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,YAAY;AAExC,OAAO,SAASC,iBAAiBA,CAAIC,IAAY,EAAkB;EAC/D,OAAO,IAAIF,WAAW,CAAIE,IAAI,CAAC;AACnC","ignoreList":[]}
@@ -0,0 +1,37 @@
1
+ export interface ICliCommandParamDefinition<TCommandParams> {
2
+ name: string;
3
+ description: string;
4
+ type: "boolean" | "number" | "string";
5
+ required?: boolean;
6
+ array?: boolean;
7
+ default?: any;
8
+ validation?: (value: TCommandParams) => boolean | string;
9
+ }
10
+ export interface ICliCommandOptionDefinition<TCommandParams> {
11
+ name: string;
12
+ description: string;
13
+ type: "boolean" | "number" | "string";
14
+ group?: string;
15
+ required?: boolean;
16
+ alias?: string;
17
+ default?: any;
18
+ validation?: (value: TCommandParams) => boolean | string;
19
+ }
20
+ export interface ICliCommandDefinition<TCommandParams> {
21
+ name: string;
22
+ description: string;
23
+ params?: ICliCommandParamDefinition<TCommandParams>[];
24
+ options?: ICliCommandOptionDefinition<TCommandParams>[];
25
+ examples?: string[];
26
+ handler: (params: TCommandParams) => void | Promise<void>;
27
+ }
28
+ export interface ICliCommand<TCommandParams> {
29
+ execute(): Promise<ICliCommandDefinition<TCommandParams>> | ICliCommandDefinition<TCommandParams>;
30
+ }
31
+ export declare const CliCommandFactory: import("@webiny/di").Abstraction<ICliCommand<any>>;
32
+ export declare namespace CliCommandFactory {
33
+ type Interface<TCommandParams> = ICliCommand<TCommandParams>;
34
+ type ParamDefinition<TCommandParams> = ICliCommandParamDefinition<TCommandParams>;
35
+ type OptionDefinition<TCommandParams> = ICliCommandOptionDefinition<TCommandParams>;
36
+ type CommandDefinition<TCommandParams> = ICliCommandDefinition<TCommandParams>;
37
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const CliCommandFactory = createAbstraction("CliCommandFactory");
3
+
4
+ //# sourceMappingURL=CliCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","CliCommandFactory"],"sources":["CliCommand.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface ICliCommandParamDefinition<TCommandParams> {\n name: string;\n description: string;\n type: \"boolean\" | \"number\" | \"string\";\n required?: boolean;\n array?: boolean;\n default?: any;\n validation?: (value: TCommandParams) => boolean | string;\n}\n\nexport interface ICliCommandOptionDefinition<TCommandParams> {\n name: string;\n description: string;\n type: \"boolean\" | \"number\" | \"string\";\n group?: string;\n required?: boolean;\n alias?: string;\n default?: any;\n validation?: (value: TCommandParams) => boolean | string;\n}\n\nexport interface ICliCommandDefinition<TCommandParams> {\n name: string;\n description: string;\n params?: ICliCommandParamDefinition<TCommandParams>[];\n options?: ICliCommandOptionDefinition<TCommandParams>[];\n examples?: string[];\n handler: (params: TCommandParams) => void | Promise<void>;\n}\n\nexport interface ICliCommand<TCommandParams> {\n execute():\n | Promise<ICliCommandDefinition<TCommandParams>>\n | ICliCommandDefinition<TCommandParams>;\n}\n\nexport const CliCommandFactory = createAbstraction<ICliCommand<any>>(\"CliCommandFactory\");\n\nexport namespace CliCommandFactory {\n export type Interface<TCommandParams> = ICliCommand<TCommandParams>;\n\n export type ParamDefinition<TCommandParams> = ICliCommandParamDefinition<TCommandParams>;\n export type OptionDefinition<TCommandParams> = ICliCommandOptionDefinition<TCommandParams>;\n\n export type CommandDefinition<TCommandParams> = ICliCommandDefinition<TCommandParams>;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAsC1B,OAAO,MAAMC,iBAAiB,GAAGD,iBAAiB,CAAmB,mBAAmB,CAAC","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ import { CliCommandFactory } from "../../abstractions/index.js";
2
+ export type IError = Error;
3
+ export interface IErrorHandlerParams<TParams> {
4
+ error: Error;
5
+ command: CliCommandFactory.CommandDefinition<any>;
6
+ params: TParams;
7
+ }
8
+ export interface IErrorHandler<TParams> {
9
+ execute(params: IErrorHandlerParams<TParams>): void;
10
+ }
11
+ export declare const ErrorHandler: import("@webiny/di").Abstraction<IErrorHandler<any>>;
12
+ export declare namespace ErrorHandler {
13
+ type Interface<TParams> = IErrorHandler<TParams>;
14
+ type Params<TParams> = IErrorHandlerParams<TParams>;
15
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const ErrorHandler = createAbstraction("ErrorHandler");
3
+
4
+ //# sourceMappingURL=ErrorHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","ErrorHandler"],"sources":["ErrorHandler.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { CliCommandFactory } from \"~/abstractions/index.js\";\n\nexport type IError = Error;\n\nexport interface IErrorHandlerParams<TParams> {\n error: Error;\n command: CliCommandFactory.CommandDefinition<any>;\n params: TParams;\n}\n\nexport interface IErrorHandler<TParams> {\n execute(params: IErrorHandlerParams<TParams>): void;\n}\n\nexport const ErrorHandler = createAbstraction<IErrorHandler<any>>(\"ErrorHandler\");\n\nexport namespace ErrorHandler {\n export type Interface<TParams> = IErrorHandler<TParams>;\n export type Params<TParams> = IErrorHandlerParams<TParams>;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAe1B,OAAO,MAAMC,YAAY,GAAGD,iBAAiB,CAAqB,cAAc,CAAC","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ export interface IGlobalCliOptionConfig {
2
+ type: "boolean" | "number" | "string";
3
+ description: string;
4
+ default?: any;
5
+ alias?: string;
6
+ choices?: string[];
7
+ }
8
+ export interface IGlobalCliOptionDefinition {
9
+ name: string;
10
+ config: IGlobalCliOptionConfig;
11
+ }
12
+ export interface IGlobalCliOption {
13
+ execute(): Promise<IGlobalCliOptionDefinition> | IGlobalCliOptionDefinition;
14
+ }
15
+ export declare const GlobalCliOption: import("@webiny/di").Abstraction<IGlobalCliOption>;
16
+ export declare namespace GlobalCliOption {
17
+ type Interface = IGlobalCliOption;
18
+ type Definition = IGlobalCliOptionDefinition;
19
+ type Config = IGlobalCliOptionConfig;
20
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const GlobalCliOption = createAbstraction("GlobalCliOption");
3
+
4
+ //# sourceMappingURL=GlobalCliOption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","GlobalCliOption"],"sources":["GlobalCliOption.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface IGlobalCliOptionConfig {\n type: \"boolean\" | \"number\" | \"string\";\n description: string;\n default?: any;\n alias?: string;\n choices?: string[];\n}\n\nexport interface IGlobalCliOptionDefinition {\n name: string;\n config: IGlobalCliOptionConfig;\n}\n\nexport interface IGlobalCliOption {\n execute(): Promise<IGlobalCliOptionDefinition> | IGlobalCliOptionDefinition;\n}\n\nexport const GlobalCliOption = createAbstraction<IGlobalCliOption>(\"GlobalCliOption\");\n\nexport namespace GlobalCliOption {\n export type Interface = IGlobalCliOption;\n export type Definition = IGlobalCliOptionDefinition;\n export type Config = IGlobalCliOptionConfig;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAmB1B,OAAO,MAAMC,eAAe,GAAGD,iBAAiB,CAAmB,iBAAiB,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ interface IIsCi {
2
+ execute(): boolean;
3
+ }
4
+ export declare const IsCi: import("@webiny/di").Abstraction<IIsCi>;
5
+ export declare namespace IsCi {
6
+ type Interface = IIsCi;
7
+ }
8
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const IsCi = createAbstraction("IsCi");
3
+
4
+ //# sourceMappingURL=IsCi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","IsCi"],"sources":["IsCi.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\ninterface IIsCi {\n execute(): boolean;\n}\n\nexport const IsCi = createAbstraction<IIsCi>(\"IsCi\");\n\nexport namespace IsCi {\n export type Interface = IIsCi;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAM1B,OAAO,MAAMC,IAAI,GAAGD,iBAAiB,CAAQ,MAAM,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ export { CliCommandFactory } from "./CliCommand.js";
2
+ export { ErrorHandler } from "./ErrorHandler.js";
3
+ export { GlobalCliOption } from "./GlobalCliOption.js";
4
+ export { IsCi } from "./IsCi.js";
@@ -0,0 +1,6 @@
1
+ export { CliCommandFactory } from "./CliCommand.js";
2
+ export { ErrorHandler } from "./ErrorHandler.js";
3
+ export { GlobalCliOption } from "./GlobalCliOption.js";
4
+ export { IsCi } from "./IsCi.js";
5
+
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CliCommandFactory","ErrorHandler","GlobalCliOption","IsCi"],"sources":["index.ts"],"sourcesContent":["export { CliCommandFactory } from \"./CliCommand.js\";\nexport { ErrorHandler } from \"./ErrorHandler.js\";\nexport { GlobalCliOption } from \"./GlobalCliOption.js\";\nexport { IsCi } from \"./IsCi.js\";\n"],"mappings":"AAAA,SAASA,iBAAiB;AAC1B,SAASC,YAAY;AACrB,SAASC,eAAe;AACxB,SAASC,IAAI","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ import { AppName } from "@webiny/project";
2
+ export interface IBaseAppParams {
3
+ _: string[];
4
+ app: AppName;
5
+ env: string;
6
+ variant?: string;
7
+ region?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ export {};
2
+
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import { AppName } from \"@webiny/project\";\n\nexport interface IBaseAppParams {\n _: string[]; // TODO: implement this in a better way (handler method probably should have this in its context/meta data)\n app: AppName;\n env: string;\n variant?: string;\n region?: string;\n}\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./features/index.js";
2
+ export * from "./services/index.js";
@@ -0,0 +1,4 @@
1
+ export * from "./features/index.js";
2
+ export * from "./services/index.js";
3
+
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./features/index.js\";\nexport * from \"./services/index.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ export interface IArgvParserService {
2
+ parse<T = Record<string, any>>(argv: string[]): T;
3
+ }
4
+ export declare const ArgvParserService: import("@webiny/di").Abstraction<IArgvParserService>;
5
+ export declare namespace ArgvParserService {
6
+ type Interface = IArgvParserService;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const ArgvParserService = createAbstraction("ArgvParserService");
3
+
4
+ //# sourceMappingURL=ArgvParserService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","ArgvParserService"],"sources":["ArgvParserService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface IArgvParserService {\n parse<T = Record<string, any>>(argv: string[]): T;\n}\n\nexport const ArgvParserService = createAbstraction<IArgvParserService>(\"ArgvParserService\");\n\nexport namespace ArgvParserService {\n export type Interface = IArgvParserService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAM1B,OAAO,MAAMC,iBAAiB,GAAGD,iBAAiB,CAAqB,mBAAmB,CAAC","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ import { ExtensionDefinitionModel } from "@webiny/project/extensions/index.js";
2
+ import { Abstraction } from "@webiny/di";
3
+ export interface ICliParams {
4
+ cwd?: string;
5
+ extensions?: ExtensionDefinitionModel<any>[];
6
+ }
7
+ export interface ICliParamsService {
8
+ get(): ICliParams;
9
+ set(params: ICliParams): void;
10
+ }
11
+ export declare const CliParamsService: Abstraction<ICliParamsService>;
12
+ export declare namespace CliParamsService {
13
+ type Interface = ICliParamsService;
14
+ type Params = ICliParams;
15
+ }
@@ -0,0 +1,4 @@
1
+ import { Abstraction } from "@webiny/di";
2
+ export const CliParamsService = new Abstraction("CliParamsService");
3
+
4
+ //# sourceMappingURL=CliParamsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Abstraction","CliParamsService"],"sources":["CliParamsService.ts"],"sourcesContent":["import { ExtensionDefinitionModel } from \"@webiny/project/extensions/index.js\";\nimport { Abstraction } from \"@webiny/di\";\n\nexport interface ICliParams {\n cwd?: string;\n extensions?: ExtensionDefinitionModel<any>[];\n}\n\nexport interface ICliParamsService {\n get(): ICliParams;\n set(params: ICliParams): void;\n}\n\nexport const CliParamsService = new Abstraction<ICliParamsService>(\"CliParamsService\");\n\nexport namespace CliParamsService {\n export type Interface = ICliParamsService;\n export type Params = ICliParams;\n}\n"],"mappings":"AACA,SAASA,WAAW,QAAQ,YAAY;AAYxC,OAAO,MAAMC,gBAAgB,GAAG,IAAID,WAAW,CAAoB,kBAAkB,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ import { CliCommandFactory } from "../../abstractions/index.js";
2
+ export interface ICommandsRegistryService {
3
+ execute(): CliCommandFactory.Interface<any>[];
4
+ }
5
+ export declare const CommandsRegistryService: import("@webiny/di").Abstraction<ICommandsRegistryService>;
6
+ export declare namespace CommandsRegistryService {
7
+ type Interface = ICommandsRegistryService;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const CommandsRegistryService = createAbstraction("CommandsRegistryService");
3
+
4
+ //# sourceMappingURL=CommandsRegistryService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","CommandsRegistryService"],"sources":["CommandsRegistryService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { CliCommandFactory } from \"~/abstractions/index.js\";\n\nexport interface ICommandsRegistryService {\n execute(): CliCommandFactory.Interface<any>[];\n}\n\nexport const CommandsRegistryService =\n createAbstraction<ICommandsRegistryService>(\"CommandsRegistryService\");\n\nexport namespace CommandsRegistryService {\n export type Interface = ICommandsRegistryService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAO1B,OAAO,MAAMC,uBAAuB,GAChCD,iBAAiB,CAA2B,yBAAyB,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ export interface IGetArgvService {
2
+ execute<T = Record<string, any>>(): T;
3
+ }
4
+ export declare const GetArgvService: import("@webiny/di").Abstraction<IGetArgvService>;
5
+ export declare namespace GetArgvService {
6
+ type Interface = IGetArgvService;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const GetArgvService = createAbstraction("GetArgvService");
3
+
4
+ //# sourceMappingURL=GetArgvService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","GetArgvService"],"sources":["GetArgvService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface IGetArgvService {\n execute<T = Record<string, any>>(): T;\n}\n\nexport const GetArgvService = createAbstraction<IGetArgvService>(\"GetArgvService\");\n\nexport namespace GetArgvService {\n export type Interface = IGetArgvService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAM1B,OAAO,MAAMC,cAAc,GAAGD,iBAAiB,CAAkB,gBAAgB,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ export interface IGetCliRunnerService {
2
+ execute(): Promise<any>;
3
+ }
4
+ export declare const GetCliRunnerService: import("@webiny/di").Abstraction<IGetCliRunnerService>;
5
+ export declare namespace GetCliRunnerService {
6
+ type Interface = IGetCliRunnerService;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const GetCliRunnerService = createAbstraction("GetCliRunnerService");
3
+
4
+ //# sourceMappingURL=GetCliRunnerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","GetCliRunnerService"],"sources":["GetCliRunnerService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface IGetCliRunnerService {\n execute(): Promise<any>;\n}\n\nexport const GetCliRunnerService = createAbstraction<IGetCliRunnerService>(\"GetCliRunnerService\");\n\nexport namespace GetCliRunnerService {\n export type Interface = IGetCliRunnerService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAM1B,OAAO,MAAMC,mBAAmB,GAAGD,iBAAiB,CAAuB,qBAAqB,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ interface IGetIsCiService {
2
+ execute(): boolean;
3
+ }
4
+ export declare const GetIsCiService: import("@webiny/di").Abstraction<IGetIsCiService>;
5
+ export declare namespace GetIsCiService {
6
+ type Interface = IGetIsCiService;
7
+ }
8
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const GetIsCiService = createAbstraction("GetIsCiService");
3
+
4
+ //# sourceMappingURL=GetIsCiService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","GetIsCiService"],"sources":["GetIsCiService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\ninterface IGetIsCiService {\n execute(): boolean;\n}\n\nexport const GetIsCiService = createAbstraction<IGetIsCiService>(\"GetIsCiService\");\n\nexport namespace GetIsCiService {\n export type Interface = IGetIsCiService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAM1B,OAAO,MAAMC,cAAc,GAAGD,iBAAiB,CAAkB,gBAAgB,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ import { type ProjectSdk } from "@webiny/project";
2
+ export interface IGetProjectSdkService {
3
+ execute(): Promise<ProjectSdk>;
4
+ }
5
+ export declare const GetProjectSdkService: import("@webiny/di").Abstraction<IGetProjectSdkService>;
6
+ export declare namespace GetProjectSdkService {
7
+ type Interface = IGetProjectSdkService;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const GetProjectSdkService = createAbstraction("GetProjectSdkService");
3
+
4
+ //# sourceMappingURL=GetProjectSdkService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","GetProjectSdkService"],"sources":["GetProjectSdkService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { type ProjectSdk } from \"@webiny/project\";\n\nexport interface IGetProjectSdkService {\n execute(): Promise<ProjectSdk>;\n}\n\nexport const GetProjectSdkService =\n createAbstraction<IGetProjectSdkService>(\"GetProjectSdkService\");\n\nexport namespace GetProjectSdkService {\n export type Interface = IGetProjectSdkService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAO1B,OAAO,MAAMC,oBAAoB,GAC7BD,iBAAiB,CAAwB,sBAAsB,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ import { GlobalCliOption } from "../../abstractions/index.js";
2
+ export interface IGlobalOptionsRegistryService {
3
+ execute(): GlobalCliOption.Interface[];
4
+ }
5
+ export declare const GlobalOptionsRegistryService: import("@webiny/di").Abstraction<IGlobalOptionsRegistryService>;
6
+ export declare namespace GlobalOptionsRegistryService {
7
+ type Interface = IGlobalOptionsRegistryService;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const GlobalOptionsRegistryService = createAbstraction("GlobalOptionsRegistryService");
3
+
4
+ //# sourceMappingURL=GlobalOptionsRegistryService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","GlobalOptionsRegistryService"],"sources":["GlobalOptionsRegistryService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { GlobalCliOption } from \"~/abstractions/index.js\";\n\nexport interface IGlobalOptionsRegistryService {\n execute(): GlobalCliOption.Interface[];\n}\n\nexport const GlobalOptionsRegistryService = createAbstraction<IGlobalOptionsRegistryService>(\n \"GlobalOptionsRegistryService\"\n);\n\nexport namespace GlobalOptionsRegistryService {\n export type Interface = IGlobalOptionsRegistryService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAO1B,OAAO,MAAMC,4BAA4B,GAAGD,iBAAiB,CACzD,8BACJ,CAAC","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ export interface ILoggerService {
2
+ trace(objOrMsg: object | string, ...args: any[]): void;
3
+ debug(objOrMsg: object | string, ...args: any[]): void;
4
+ info(objOrMsg: object | string, ...args: any[]): void;
5
+ warn(objOrMsg: object | string, ...args: any[]): void;
6
+ error(objOrMsg: object | string, ...args: any[]): void;
7
+ fatal(objOrMsg: object | string, ...args: any[]): void;
8
+ log(objOrMsg: object | string, ...args: any[]): void;
9
+ }
10
+ export declare const LoggerService: import("@webiny/di").Abstraction<ILoggerService>;
11
+ export declare namespace LoggerService {
12
+ type Interface = ILoggerService;
13
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const LoggerService = createAbstraction("LoggerService");
3
+
4
+ //# sourceMappingURL=LoggerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","LoggerService"],"sources":["LoggerService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface ILoggerService {\n // Basic levels\n trace(objOrMsg: object | string, ...args: any[]): void;\n debug(objOrMsg: object | string, ...args: any[]): void;\n info(objOrMsg: object | string, ...args: any[]): void;\n warn(objOrMsg: object | string, ...args: any[]): void;\n error(objOrMsg: object | string, ...args: any[]): void;\n fatal(objOrMsg: object | string, ...args: any[]): void;\n\n // Generic log (can default to 'info')\n log(objOrMsg: object | string, ...args: any[]): void;\n}\n\nexport const LoggerService = createAbstraction<ILoggerService>(\"LoggerService\");\n\nexport namespace LoggerService {\n export type Interface = ILoggerService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAe1B,OAAO,MAAMC,aAAa,GAAGD,iBAAiB,CAAiB,eAAe,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ export interface IRunCliRunnerService {
2
+ execute(): any;
3
+ }
4
+ export declare const RunCliRunnerService: import("@webiny/di").Abstraction<IRunCliRunnerService>;
5
+ export declare namespace RunCliRunnerService {
6
+ type Interface = IRunCliRunnerService;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const RunCliRunnerService = createAbstraction("RunCliRunnerService");
3
+
4
+ //# sourceMappingURL=RunCliRunnerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","RunCliRunnerService"],"sources":["RunCliRunnerService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface IRunCliRunnerService {\n execute(): any;\n}\n\nexport const RunCliRunnerService = createAbstraction<IRunCliRunnerService>(\"RunCliRunnerService\");\n\nexport namespace RunCliRunnerService {\n export type Interface = IRunCliRunnerService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAM1B,OAAO,MAAMC,mBAAmB,GAAGD,iBAAiB,CAAuB,qBAAqB,CAAC","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ export interface IStdioService {
2
+ getStdout(): NodeJS.WriteStream;
3
+ getStderr(): NodeJS.WriteStream;
4
+ getStdin(): NodeJS.ReadStream;
5
+ }
6
+ export declare const StdioService: import("@webiny/di").Abstraction<IStdioService>;
7
+ export declare namespace StdioService {
8
+ type Interface = IStdioService;
9
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const StdioService = createAbstraction("StdioService");
3
+
4
+ //# sourceMappingURL=StdioService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","StdioService"],"sources":["StdioService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface IStdioService {\n getStdout(): NodeJS.WriteStream;\n\n getStderr(): NodeJS.WriteStream;\n\n getStdin(): NodeJS.ReadStream;\n}\n\nexport const StdioService = createAbstraction<IStdioService>(\"StdioService\");\n\nexport namespace StdioService {\n export type Interface = IStdioService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAU1B,OAAO,MAAMC,YAAY,GAAGD,iBAAiB,CAAgB,cAAc,CAAC","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ export interface IUiService {
2
+ raw(text: string): void;
3
+ text(text: string): void;
4
+ textBold(text: string): void;
5
+ emptyLine(): void;
6
+ info(text: string, ...args: any[]): void;
7
+ success(text: string, ...args: any[]): void;
8
+ error(text: string, ...args: any[]): void;
9
+ warning(text: string, ...args: any[]): void;
10
+ debug(text: string, ...args: any[]): void;
11
+ }
12
+ export declare const UiService: import("@webiny/di").Abstraction<IUiService>;
13
+ export declare namespace UiService {
14
+ type Interface = IUiService;
15
+ }
@@ -0,0 +1,4 @@
1
+ import { createAbstraction } from "../createAbstraction.js";
2
+ export const UiService = createAbstraction("UiService");
3
+
4
+ //# sourceMappingURL=UiService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createAbstraction","UiService"],"sources":["UiService.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface IUiService {\n raw(text: string): void;\n\n text(text: string): void;\n\n textBold(text: string): void;\n\n emptyLine(): void;\n\n info(text: string, ...args: any[]): void;\n\n success(text: string, ...args: any[]): void;\n\n error(text: string, ...args: any[]): void;\n\n warning(text: string, ...args: any[]): void;\n\n debug(text: string, ...args: any[]): void;\n}\n\nexport const UiService = createAbstraction<IUiService>(\"UiService\");\n\nexport namespace UiService {\n export type Interface = IUiService;\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAsB1B,OAAO,MAAMC,SAAS,GAAGD,iBAAiB,CAAa,WAAW,CAAC","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ export * from "./ArgvParserService.js";
2
+ export * from "./CliParamsService.js";
3
+ export * from "./CommandsRegistryService.js";
4
+ export * from "./GetArgvService.js";
5
+ export * from "./GetCliRunnerService.js";
6
+ export * from "./GetIsCiService.js";
7
+ export * from "./GlobalOptionsRegistryService.js";
8
+ export * from "./GetProjectSdkService.js";
9
+ export * from "./LoggerService.js";
10
+ export * from "./RunCliRunnerService.js";
11
+ export * from "./StdioService.js";
12
+ export * from "./UiService.js";
@@ -0,0 +1,14 @@
1
+ export * from "./ArgvParserService.js";
2
+ export * from "./CliParamsService.js";
3
+ export * from "./CommandsRegistryService.js";
4
+ export * from "./GetArgvService.js";
5
+ export * from "./GetCliRunnerService.js";
6
+ export * from "./GetIsCiService.js";
7
+ export * from "./GlobalOptionsRegistryService.js";
8
+ export * from "./GetProjectSdkService.js";
9
+ export * from "./LoggerService.js";
10
+ export * from "./RunCliRunnerService.js";
11
+ export * from "./StdioService.js";
12
+ export * from "./UiService.js";
13
+
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ArgvParserService.js\";\nexport * from \"./CliParamsService.js\";\nexport * from \"./CommandsRegistryService.js\";\nexport * from \"./GetArgvService.js\";\nexport * from \"./GetCliRunnerService.js\";\nexport * from \"./GetIsCiService.js\";\nexport * from \"./GlobalOptionsRegistryService.js\";\nexport * from \"./GetProjectSdkService.js\";\nexport * from \"./LoggerService.js\";\nexport * from \"./RunCliRunnerService.js\";\nexport * from \"./StdioService.js\";\nexport * from \"./UiService.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import { Container } from "@webiny/di";
2
+ import { CliParamsService } from "./abstractions/index.js";
3
+ export declare const createCliContainer: (params: CliParamsService.Params) => Promise<Container>;