@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.
- package/Cli.d.ts +7 -0
- package/Cli.js +16 -0
- package/Cli.js.map +1 -0
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/abstractions/createAbstraction.d.ts +2 -0
- package/abstractions/createAbstraction.js +6 -0
- package/abstractions/createAbstraction.js.map +1 -0
- package/abstractions/features/CliCommand.d.ts +37 -0
- package/abstractions/features/CliCommand.js +4 -0
- package/abstractions/features/CliCommand.js.map +1 -0
- package/abstractions/features/ErrorHandler.d.ts +15 -0
- package/abstractions/features/ErrorHandler.js +4 -0
- package/abstractions/features/ErrorHandler.js.map +1 -0
- package/abstractions/features/GlobalCliOption.d.ts +20 -0
- package/abstractions/features/GlobalCliOption.js +4 -0
- package/abstractions/features/GlobalCliOption.js.map +1 -0
- package/abstractions/features/IsCi.d.ts +8 -0
- package/abstractions/features/IsCi.js +4 -0
- package/abstractions/features/IsCi.js.map +1 -0
- package/abstractions/features/index.d.ts +4 -0
- package/abstractions/features/index.js +6 -0
- package/abstractions/features/index.js.map +1 -0
- package/abstractions/features/types.d.ts +8 -0
- package/abstractions/features/types.js +3 -0
- package/abstractions/features/types.js.map +1 -0
- package/abstractions/index.d.ts +2 -0
- package/abstractions/index.js +4 -0
- package/abstractions/index.js.map +1 -0
- package/abstractions/services/ArgvParserService.d.ts +7 -0
- package/abstractions/services/ArgvParserService.js +4 -0
- package/abstractions/services/ArgvParserService.js.map +1 -0
- package/abstractions/services/CliParamsService.d.ts +15 -0
- package/abstractions/services/CliParamsService.js +4 -0
- package/abstractions/services/CliParamsService.js.map +1 -0
- package/abstractions/services/CommandsRegistryService.d.ts +8 -0
- package/abstractions/services/CommandsRegistryService.js +4 -0
- package/abstractions/services/CommandsRegistryService.js.map +1 -0
- package/abstractions/services/GetArgvService.d.ts +7 -0
- package/abstractions/services/GetArgvService.js +4 -0
- package/abstractions/services/GetArgvService.js.map +1 -0
- package/abstractions/services/GetCliRunnerService.d.ts +7 -0
- package/abstractions/services/GetCliRunnerService.js +4 -0
- package/abstractions/services/GetCliRunnerService.js.map +1 -0
- package/abstractions/services/GetIsCiService.d.ts +8 -0
- package/abstractions/services/GetIsCiService.js +4 -0
- package/abstractions/services/GetIsCiService.js.map +1 -0
- package/abstractions/services/GetProjectSdkService.d.ts +8 -0
- package/abstractions/services/GetProjectSdkService.js +4 -0
- package/abstractions/services/GetProjectSdkService.js.map +1 -0
- package/abstractions/services/GlobalOptionsRegistryService.d.ts +8 -0
- package/abstractions/services/GlobalOptionsRegistryService.js +4 -0
- package/abstractions/services/GlobalOptionsRegistryService.js.map +1 -0
- package/abstractions/services/LoggerService.d.ts +13 -0
- package/abstractions/services/LoggerService.js +4 -0
- package/abstractions/services/LoggerService.js.map +1 -0
- package/abstractions/services/RunCliRunnerService.d.ts +7 -0
- package/abstractions/services/RunCliRunnerService.js +4 -0
- package/abstractions/services/RunCliRunnerService.js.map +1 -0
- package/abstractions/services/StdioService.d.ts +9 -0
- package/abstractions/services/StdioService.js +4 -0
- package/abstractions/services/StdioService.js.map +1 -0
- package/abstractions/services/UiService.d.ts +15 -0
- package/abstractions/services/UiService.js +4 -0
- package/abstractions/services/UiService.js.map +1 -0
- package/abstractions/services/index.d.ts +12 -0
- package/abstractions/services/index.js +14 -0
- package/abstractions/services/index.js.map +1 -0
- package/createCliContainer.d.ts +3 -0
- package/createCliContainer.js +128 -0
- package/createCliContainer.js.map +1 -0
- package/decorators/CommandsWithGracefulErrorHandling.d.ts +10 -0
- package/decorators/CommandsWithGracefulErrorHandling.js +38 -0
- package/decorators/CommandsWithGracefulErrorHandling.js.map +1 -0
- package/decorators/DeployCommandWithTelemetry.d.ts +11 -0
- package/decorators/DeployCommandWithTelemetry.js +91 -0
- package/decorators/DeployCommandWithTelemetry.js.map +1 -0
- package/decorators/index.d.ts +2 -0
- package/decorators/index.js +4 -0
- package/decorators/index.js.map +1 -0
- package/exports/cli/command.d.ts +1 -0
- package/exports/cli/command.js +3 -0
- package/exports/cli/command.js.map +1 -0
- package/exports/cli/index.d.ts +2 -0
- package/exports/cli/index.js +4 -0
- package/exports/cli/index.js.map +1 -0
- package/extensions/CliCommand.d.ts +8 -0
- package/extensions/CliCommand.js +23 -0
- package/extensions/CliCommand.js.map +1 -0
- package/extensions/CliCommandDecorator.d.ts +8 -0
- package/extensions/CliCommandDecorator.js +23 -0
- package/extensions/CliCommandDecorator.js.map +1 -0
- package/extensions/index.d.ts +9 -0
- package/extensions/index.js +6 -0
- package/extensions/index.js.map +1 -0
- package/features/AboutCommand.d.ts +12 -0
- package/features/AboutCommand.js +94 -0
- package/features/AboutCommand.js.map +1 -0
- package/features/BuildCommand/BuildCommand.d.ts +11 -0
- package/features/BuildCommand/BuildCommand.js +44 -0
- package/features/BuildCommand/BuildCommand.js.map +1 -0
- package/features/BuildCommand/buildRunners/BaseBuildRunner.d.ts +14 -0
- package/features/BuildCommand/buildRunners/BaseBuildRunner.js +16 -0
- package/features/BuildCommand/buildRunners/BaseBuildRunner.js.map +1 -0
- package/features/BuildCommand/buildRunners/BuildRunner.d.ts +6 -0
- package/features/BuildCommand/buildRunners/BuildRunner.js +30 -0
- package/features/BuildCommand/buildRunners/BuildRunner.js.map +1 -0
- package/features/BuildCommand/buildRunners/MultipleBuildsRunner.d.ts +4 -0
- package/features/BuildCommand/buildRunners/MultipleBuildsRunner.js +25 -0
- package/features/BuildCommand/buildRunners/MultipleBuildsRunner.js.map +1 -0
- package/features/BuildCommand/buildRunners/SingleBuildRunner.d.ts +4 -0
- package/features/BuildCommand/buildRunners/SingleBuildRunner.js +19 -0
- package/features/BuildCommand/buildRunners/SingleBuildRunner.js.map +1 -0
- package/features/BuildCommand/buildRunners/ZeroBuildsRunner.d.ts +4 -0
- package/features/BuildCommand/buildRunners/ZeroBuildsRunner.js +8 -0
- package/features/BuildCommand/buildRunners/ZeroBuildsRunner.js.map +1 -0
- package/features/BuildCommand/index.d.ts +1 -0
- package/features/BuildCommand/index.js +3 -0
- package/features/BuildCommand/index.js.map +1 -0
- package/features/ConfigCommand.d.ts +16 -0
- package/features/ConfigCommand.js +64 -0
- package/features/ConfigCommand.js.map +1 -0
- package/features/DeployCommand/DeployCommand.d.ts +30 -0
- package/features/DeployCommand/DeployCommand.js +168 -0
- package/features/DeployCommand/DeployCommand.js.map +1 -0
- package/features/DeployCommand/deployOutputs/BaseDeployOutput.d.ts +20 -0
- package/features/DeployCommand/deployOutputs/BaseDeployOutput.js +20 -0
- package/features/DeployCommand/deployOutputs/BaseDeployOutput.js.map +1 -0
- package/features/DeployCommand/deployOutputs/DeployOutput.d.ts +5 -0
- package/features/DeployCommand/deployOutputs/DeployOutput.js +24 -0
- package/features/DeployCommand/deployOutputs/DeployOutput.js.map +1 -0
- package/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.d.ts +4 -0
- package/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.js +61 -0
- package/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.js.map +1 -0
- package/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.d.ts +4 -0
- package/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.js +44 -0
- package/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.js.map +1 -0
- package/features/DeployCommand/index.d.ts +1 -0
- package/features/DeployCommand/index.js +3 -0
- package/features/DeployCommand/index.js.map +1 -0
- package/features/DepsSync/BuildDependencyTree.d.ts +9 -0
- package/features/DepsSync/BuildDependencyTree.js +27 -0
- package/features/DepsSync/BuildDependencyTree.js.map +1 -0
- package/features/DepsSync/DependencyTree.d.ts +12 -0
- package/features/DepsSync/DependencyTree.js +131 -0
- package/features/DepsSync/DependencyTree.js.map +1 -0
- package/features/DepsSync/ListAllPackageJsonFiles.d.ts +7 -0
- package/features/DepsSync/ListAllPackageJsonFiles.js +18 -0
- package/features/DepsSync/ListAllPackageJsonFiles.js.map +1 -0
- package/features/DepsSync/ListAllPackages.d.ts +3 -0
- package/features/DepsSync/ListAllPackages.js +13 -0
- package/features/DepsSync/ListAllPackages.js.map +1 -0
- package/features/DepsSync/commands/SyncDepsCommand.d.ts +13 -0
- package/features/DepsSync/commands/SyncDepsCommand.js +32 -0
- package/features/DepsSync/commands/SyncDepsCommand.js.map +1 -0
- package/features/DepsSync/commands/VerifyDepsCommand.d.ts +13 -0
- package/features/DepsSync/commands/VerifyDepsCommand.js +81 -0
- package/features/DepsSync/commands/VerifyDepsCommand.js.map +1 -0
- package/features/DepsSync/createDependencyTree.d.ts +3 -0
- package/features/DepsSync/createDependencyTree.js +24 -0
- package/features/DepsSync/createDependencyTree.js.map +1 -0
- package/features/DepsSync/createReferenceFile.d.ts +7 -0
- package/features/DepsSync/createReferenceFile.js +30 -0
- package/features/DepsSync/createReferenceFile.js.map +1 -0
- package/features/DepsSync/index.d.ts +2 -0
- package/features/DepsSync/index.js +4 -0
- package/features/DepsSync/index.js.map +1 -0
- package/features/DepsSync/paths.d.ts +3 -0
- package/features/DepsSync/paths.js +8 -0
- package/features/DepsSync/paths.js.map +1 -0
- package/features/DepsSync/types.d.ts +45 -0
- package/features/DepsSync/types.js +9 -0
- package/features/DepsSync/types.js.map +1 -0
- package/features/DestroyCommand/DestroyCommand.d.ts +22 -0
- package/features/DestroyCommand/DestroyCommand.js +78 -0
- package/features/DestroyCommand/DestroyCommand.js.map +1 -0
- package/features/DestroyCommand/index.d.ts +1 -0
- package/features/DestroyCommand/index.js +3 -0
- package/features/DestroyCommand/index.js.map +1 -0
- package/features/DisableTelemetryCommand.d.ts +11 -0
- package/features/DisableTelemetryCommand.js +31 -0
- package/features/DisableTelemetryCommand.js.map +1 -0
- package/features/EnableTelemetryCommand.d.ts +11 -0
- package/features/EnableTelemetryCommand.js +31 -0
- package/features/EnableTelemetryCommand.js.map +1 -0
- package/features/ExtensionCommand/ExtensionCommand.d.ts +12 -0
- package/features/ExtensionCommand/ExtensionCommand.js +71 -0
- package/features/ExtensionCommand/ExtensionCommand.js.map +1 -0
- package/features/ExtensionCommand/index.d.ts +1 -0
- package/features/ExtensionCommand/index.js +3 -0
- package/features/ExtensionCommand/index.js.map +1 -0
- package/features/InfoCommand/InfoCommand.d.ts +10 -0
- package/features/InfoCommand/InfoCommand.js +64 -0
- package/features/InfoCommand/InfoCommand.js.map +1 -0
- package/features/InfoCommand/PrintInfoForEnv.d.ts +14 -0
- package/features/InfoCommand/PrintInfoForEnv.js +48 -0
- package/features/InfoCommand/PrintInfoForEnv.js.map +1 -0
- package/features/InfoCommand/index.d.ts +1 -0
- package/features/InfoCommand/index.js +3 -0
- package/features/InfoCommand/index.js.map +1 -0
- package/features/IsCi/IsCi.d.ts +7 -0
- package/features/IsCi/IsCi.js +17 -0
- package/features/IsCi/IsCi.js.map +1 -0
- package/features/IsCi/index.d.ts +1 -0
- package/features/IsCi/index.js +3 -0
- package/features/IsCi/index.js.map +1 -0
- package/features/OpenCommand.d.ts +10 -0
- package/features/OpenCommand.js +54 -0
- package/features/OpenCommand.js.map +1 -0
- package/features/OutputCommand.d.ts +12 -0
- package/features/OutputCommand.js +79 -0
- package/features/OutputCommand.js.map +1 -0
- package/features/PulumiCommand/PulumiCommand.d.ts +13 -0
- package/features/PulumiCommand/PulumiCommand.js +50 -0
- package/features/PulumiCommand/PulumiCommand.js.map +1 -0
- package/features/PulumiCommand/index.d.ts +1 -0
- package/features/PulumiCommand/index.js +3 -0
- package/features/PulumiCommand/index.js.map +1 -0
- package/features/RefreshCommand/RefreshCommand.d.ts +12 -0
- package/features/RefreshCommand/RefreshCommand.js +45 -0
- package/features/RefreshCommand/RefreshCommand.js.map +1 -0
- package/features/RefreshCommand/index.d.ts +1 -0
- package/features/RefreshCommand/index.js +3 -0
- package/features/RefreshCommand/index.js.map +1 -0
- package/features/WatchCommand/WatchCommand.d.ts +11 -0
- package/features/WatchCommand/WatchCommand.js +143 -0
- package/features/WatchCommand/WatchCommand.js.map +1 -0
- package/features/WatchCommand/createPrefixer.d.ts +2 -0
- package/features/WatchCommand/createPrefixer.js +20 -0
- package/features/WatchCommand/createPrefixer.js.map +1 -0
- package/features/WatchCommand/getRandomColorForString.d.ts +1 -0
- package/features/WatchCommand/getRandomColorForString.js +11 -0
- package/features/WatchCommand/getRandomColorForString.js.map +1 -0
- package/features/WatchCommand/index.d.ts +1 -0
- package/features/WatchCommand/index.js +3 -0
- package/features/WatchCommand/index.js.map +1 -0
- package/features/Wcp/LinkProjectCommand.d.ts +13 -0
- package/features/Wcp/LinkProjectCommand.js +146 -0
- package/features/Wcp/LinkProjectCommand.js.map +1 -0
- package/features/Wcp/LoginCommand.d.ts +13 -0
- package/features/Wcp/LoginCommand.js +126 -0
- package/features/Wcp/LoginCommand.js.map +1 -0
- package/features/Wcp/LogoutCommand.d.ts +13 -0
- package/features/Wcp/LogoutCommand.js +29 -0
- package/features/Wcp/LogoutCommand.js.map +1 -0
- package/features/Wcp/WhoAmICommand.d.ts +15 -0
- package/features/Wcp/WhoAmICommand.js +34 -0
- package/features/Wcp/WhoAmICommand.js.map +1 -0
- package/features/common/index.d.ts +1 -0
- package/features/common/index.js +3 -0
- package/features/common/index.js.map +1 -0
- package/features/common/options.d.ts +20 -0
- package/features/common/options.js +52 -0
- package/features/common/options.js.map +1 -0
- package/features/globalOptions/LogLevelGlobalOption.d.ts +5 -0
- package/features/globalOptions/LogLevelGlobalOption.js +22 -0
- package/features/globalOptions/LogLevelGlobalOption.js.map +1 -0
- package/features/globalOptions/ShowLogsGlobalOption.d.ts +5 -0
- package/features/globalOptions/ShowLogsGlobalOption.js +21 -0
- package/features/globalOptions/ShowLogsGlobalOption.js.map +1 -0
- package/features/globalOptions/StackTraceGlobalOption.d.ts +5 -0
- package/features/globalOptions/StackTraceGlobalOption.js +21 -0
- package/features/globalOptions/StackTraceGlobalOption.js.map +1 -0
- package/features/globalOptions/index.d.ts +3 -0
- package/features/globalOptions/index.js +5 -0
- package/features/globalOptions/index.js.map +1 -0
- package/features/gracefulErrorHandlers/DdbPutItemConditionalCheckFailedGracefulErrorHandler.d.ts +6 -0
- package/features/gracefulErrorHandlers/DdbPutItemConditionalCheckFailedGracefulErrorHandler.js +26 -0
- package/features/gracefulErrorHandlers/DdbPutItemConditionalCheckFailedGracefulErrorHandler.js.map +1 -0
- package/features/gracefulErrorHandlers/MissingFilesInBuildGracefulErrorHandler.d.ts +6 -0
- package/features/gracefulErrorHandlers/MissingFilesInBuildGracefulErrorHandler.js +27 -0
- package/features/gracefulErrorHandlers/MissingFilesInBuildGracefulErrorHandler.js.map +1 -0
- package/features/gracefulErrorHandlers/PendingOperationsGracefulErrorHandler.d.ts +6 -0
- package/features/gracefulErrorHandlers/PendingOperationsGracefulErrorHandler.js +29 -0
- package/features/gracefulErrorHandlers/PendingOperationsGracefulErrorHandler.js.map +1 -0
- package/features/gracefulErrorHandlers/index.d.ts +3 -0
- package/features/gracefulErrorHandlers/index.js +5 -0
- package/features/gracefulErrorHandlers/index.js.map +1 -0
- package/features/index.d.ts +22 -0
- package/features/index.js +24 -0
- package/features/index.js.map +1 -0
- package/features/utils/index.d.ts +1 -0
- package/features/utils/index.js +3 -0
- package/features/utils/index.js.map +1 -0
- package/features/utils/measureDuration.d.ts +1 -0
- package/features/utils/measureDuration.js +11 -0
- package/features/utils/measureDuration.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +3 -0
- package/index.js.map +1 -0
- package/package.json +48 -0
- package/services/ArgvParserService/ArgvParserService.d.ts +7 -0
- package/services/ArgvParserService/ArgvParserService.js +41 -0
- package/services/ArgvParserService/ArgvParserService.js.map +1 -0
- package/services/ArgvParserService/index.d.ts +1 -0
- package/services/ArgvParserService/index.js +3 -0
- package/services/ArgvParserService/index.js.map +1 -0
- package/services/CliParamsService/CliParamsService.d.ts +7 -0
- package/services/CliParamsService/CliParamsService.js +21 -0
- package/services/CliParamsService/CliParamsService.js.map +1 -0
- package/services/CliParamsService/index.d.ts +1 -0
- package/services/CliParamsService/index.js +3 -0
- package/services/CliParamsService/index.js.map +1 -0
- package/services/CommandsRegistryService/CommandsRegistryService.d.ts +7 -0
- package/services/CommandsRegistryService/CommandsRegistryService.js +19 -0
- package/services/CommandsRegistryService/CommandsRegistryService.js.map +1 -0
- package/services/CommandsRegistryService/index.d.ts +1 -0
- package/services/CommandsRegistryService/index.js +3 -0
- package/services/CommandsRegistryService/index.js.map +1 -0
- package/services/GetArgvService/GetArgvService.d.ts +7 -0
- package/services/GetArgvService/GetArgvService.js +17 -0
- package/services/GetArgvService/GetArgvService.js.map +1 -0
- package/services/GetArgvService/index.d.ts +1 -0
- package/services/GetArgvService/index.js +3 -0
- package/services/GetArgvService/index.js.map +1 -0
- package/services/GetCliRunnerService/GetCliRunnerService.d.ts +13 -0
- package/services/GetCliRunnerService/GetCliRunnerService.js +160 -0
- package/services/GetCliRunnerService/GetCliRunnerService.js.map +1 -0
- package/services/GetCliRunnerService/index.d.ts +1 -0
- package/services/GetCliRunnerService/index.js +3 -0
- package/services/GetCliRunnerService/index.js.map +1 -0
- package/services/GetIsCiService/GetIsCiService.d.ts +5 -0
- package/services/GetIsCiService/GetIsCiService.js +15 -0
- package/services/GetIsCiService/GetIsCiService.js.map +1 -0
- package/services/GetIsCiService/index.d.ts +1 -0
- package/services/GetIsCiService/index.js +3 -0
- package/services/GetIsCiService/index.js.map +1 -0
- package/services/GetProjectSdkService/GetProjectSdkService.d.ts +9 -0
- package/services/GetProjectSdkService/GetProjectSdkService.js +31 -0
- package/services/GetProjectSdkService/GetProjectSdkService.js.map +1 -0
- package/services/GetProjectSdkService/index.d.ts +1 -0
- package/services/GetProjectSdkService/index.js +3 -0
- package/services/GetProjectSdkService/index.js.map +1 -0
- package/services/GlobalOptionsRegistryService/GlobalOptionsRegistryService.d.ts +7 -0
- package/services/GlobalOptionsRegistryService/GlobalOptionsRegistryService.js +19 -0
- package/services/GlobalOptionsRegistryService/GlobalOptionsRegistryService.js.map +1 -0
- package/services/GlobalOptionsRegistryService/index.d.ts +1 -0
- package/services/GlobalOptionsRegistryService/index.js +3 -0
- package/services/GlobalOptionsRegistryService/index.js.map +1 -0
- package/services/LoggerService/LoggerService.d.ts +18 -0
- package/services/LoggerService/LoggerService.js +100 -0
- package/services/LoggerService/LoggerService.js.map +1 -0
- package/services/LoggerService/index.d.ts +1 -0
- package/services/LoggerService/index.js +3 -0
- package/services/LoggerService/index.js.map +1 -0
- package/services/RunCliRunnerService/RunCliRunnerService.d.ts +11 -0
- package/services/RunCliRunnerService/RunCliRunnerService.js +20 -0
- package/services/RunCliRunnerService/RunCliRunnerService.js.map +1 -0
- package/services/RunCliRunnerService/index.d.ts +1 -0
- package/services/RunCliRunnerService/index.js +3 -0
- package/services/RunCliRunnerService/index.js.map +1 -0
- package/services/StdioService/StdioService.d.ts +13 -0
- package/services/StdioService/StdioService.js +20 -0
- package/services/StdioService/StdioService.js.map +1 -0
- package/services/StdioService/index.d.ts +1 -0
- package/services/StdioService/index.js +3 -0
- package/services/StdioService/index.js.map +1 -0
- package/services/UiService/UiService.d.ts +17 -0
- package/services/UiService/UiService.js +70 -0
- package/services/UiService/UiService.js.map +1 -0
- package/services/UiService/index.d.ts +1 -0
- package/services/UiService/index.js +3 -0
- package/services/UiService/index.js.map +1 -0
- package/services/index.d.ts +12 -0
- package/services/index.js +14 -0
- package/services/index.js.map +1 -0
- package/utils/ManuallyReportedError.d.ts +3 -0
- package/utils/ManuallyReportedError.js +9 -0
- package/utils/ManuallyReportedError.js.map +1 -0
package/Cli.d.ts
ADDED
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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":[]}
|