@flowscripter/dynamic-cli-framework 1.7.5 → 2.0.0
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-plugin.ts +1 -104
- package/dist/cli-plugin.d.ts +1 -58
- package/dist/cli-plugin.d.ts.map +1 -1
- package/dist/cli-plugin.js +1 -25
- package/dist/index.d.ts +70 -69
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -26
- package/dist/src/cli/BaseCLI.d.ts +6 -6
- package/dist/src/cli/BaseCLI.d.ts.map +1 -1
- package/dist/src/cli/BaseCLI.js +1 -1
- package/dist/src/{api → cli}/BaseCLIFeatureOptions.d.ts.map +1 -1
- package/dist/src/cli/DefaultRuntimeCLI.d.ts +3 -3
- package/dist/src/cli/DefaultRuntimeCLI.d.ts.map +1 -1
- package/dist/src/cli/DynamicPluginRuntimeCLI.d.ts +3 -3
- package/dist/src/cli/DynamicPluginRuntimeCLI.d.ts.map +1 -1
- package/dist/src/cli/DynamicPluginRuntimeCLI.js +3 -3
- package/dist/src/command/MultiCommandCliHelpCommand.d.ts +7 -7
- package/dist/src/command/MultiCommandCliHelpCommand.d.ts.map +1 -1
- package/dist/src/command/MultiCommandCliHelpCommand.js +3 -3
- package/dist/src/command/SingleCommandCliHelpCommand.d.ts +6 -6
- package/dist/src/command/SingleCommandCliHelpCommand.d.ts.map +1 -1
- package/dist/src/command/SingleCommandCliHelpCommand.js +2 -2
- package/dist/src/command/UsageCommand.d.ts +3 -3
- package/dist/src/command/UsageCommand.d.ts.map +1 -1
- package/dist/src/command/UsageCommand.js +1 -1
- package/dist/src/command/VersionCommand.d.ts +2 -2
- package/dist/src/command/VersionCommand.d.ts.map +1 -1
- package/dist/src/command/VersionCommand.js +1 -1
- package/dist/src/launcher.d.ts +2 -5
- package/dist/src/launcher.d.ts.map +1 -1
- package/dist/src/runtime/DefaultContext.d.ts +2 -2
- package/dist/src/runtime/DefaultContext.d.ts.map +1 -1
- package/dist/src/runtime/argument/ArgumentTypeGuards.d.ts +2 -2
- package/dist/src/runtime/argument/ArgumentTypeGuards.d.ts.map +1 -1
- package/dist/src/runtime/command/CommandTypeGuards.d.ts +5 -5
- package/dist/src/runtime/command/CommandTypeGuards.d.ts.map +1 -1
- package/dist/src/runtime/command/CommandValidator.d.ts +2 -2
- package/dist/src/runtime/command/CommandValidator.d.ts.map +1 -1
- package/dist/src/runtime/command/CommandValidator.js +1 -1
- package/dist/src/runtime/parser.d.ts +3 -32
- package/dist/src/runtime/parser.d.ts.map +1 -1
- package/dist/src/runtime/registry/DefaultCommandRegistry.d.ts +6 -6
- package/dist/src/runtime/registry/DefaultCommandRegistry.d.ts.map +1 -1
- package/dist/src/runtime/registry/DefaultServiceProviderRegistry.d.ts +2 -2
- package/dist/src/runtime/registry/DefaultServiceProviderRegistry.d.ts.map +1 -1
- package/dist/src/runtime/runner.d.ts +5 -5
- package/dist/src/runtime/runner.d.ts.map +1 -1
- package/dist/src/runtime/runner.js +2 -2
- package/dist/src/runtime/scanner.d.ts +4 -4
- package/dist/src/runtime/scanner.d.ts.map +1 -1
- package/dist/src/runtime/values/ValuePopulationResult.d.ts +2 -2
- package/dist/src/runtime/values/ValuePopulationResult.d.ts.map +1 -1
- package/dist/src/runtime/values/argumentValueMerge.d.ts +1 -1
- package/dist/src/runtime/values/argumentValueMerge.d.ts.map +1 -1
- package/dist/src/runtime/values/argumentValueMerge.js +2 -2
- package/dist/src/runtime/values/argumentValueValidation.d.ts +6 -6
- package/dist/src/runtime/values/argumentValueValidation.d.ts.map +1 -1
- package/dist/src/runtime/values/argumentValueValidation.js +2 -2
- package/dist/src/runtime/values/globalCommandValuePopulation.d.ts +2 -2
- package/dist/src/runtime/values/globalCommandValuePopulation.d.ts.map +1 -1
- package/dist/src/runtime/values/globalCommandValuePopulation.js +2 -2
- package/dist/src/runtime/values/subCommandValuePopulation.d.ts +2 -2
- package/dist/src/runtime/values/subCommandValuePopulation.d.ts.map +1 -1
- package/dist/src/runtime/values/subCommandValuePopulation.js +4 -4
- package/dist/src/service/argumentPrompter/ArgumentPrompterServiceProvider.d.ts +4 -4
- package/dist/src/service/argumentPrompter/ArgumentPrompterServiceProvider.d.ts.map +1 -1
- package/dist/src/service/argumentPrompter/ArgumentPrompterServiceProvider.js +1 -1
- package/dist/src/service/argumentPrompter/DefaultArgumentPrompterService.d.ts +2 -2
- package/dist/src/service/argumentPrompter/DefaultArgumentPrompterService.d.ts.map +1 -1
- package/dist/src/service/argumentPrompter/DefaultArgumentPrompterService.js +3 -3
- package/dist/src/service/asciiBannerGenerator/AsciiBannerGeneratorServiceProvider.d.ts +3 -3
- package/dist/src/service/asciiBannerGenerator/AsciiBannerGeneratorServiceProvider.d.ts.map +1 -1
- package/dist/src/service/asciiBannerGenerator/AsciiBannerGeneratorServiceProvider.js +1 -1
- package/dist/src/service/asciiBannerGenerator/DefaultAsciiBannerGeneratorService.d.ts +2 -2
- package/dist/src/service/asciiBannerGenerator/DefaultAsciiBannerGeneratorService.d.ts.map +1 -1
- package/dist/src/service/banner/BannerServiceProvider.d.ts +3 -3
- package/dist/src/service/banner/BannerServiceProvider.d.ts.map +1 -1
- package/dist/src/service/banner/BannerServiceProvider.js +2 -2
- package/dist/src/service/banner/command/NoBannerCommand.d.ts +4 -4
- package/dist/src/service/banner/command/NoBannerCommand.d.ts.map +1 -1
- package/dist/src/service/banner/command/NoBannerCommand.js +1 -1
- package/dist/src/service/chiselAsciiBannerGenerator/ChiselFontAsciiBannerGeneratorService.d.ts +2 -2
- package/dist/src/service/chiselAsciiBannerGenerator/ChiselFontAsciiBannerGeneratorService.d.ts.map +1 -1
- package/dist/src/service/completion/CompletionServiceProvider.d.ts +5 -5
- package/dist/src/service/completion/CompletionServiceProvider.d.ts.map +1 -1
- package/dist/src/service/completion/CompletionServiceProvider.js +6 -6
- package/dist/src/service/completion/DefaultCompletionService.d.ts +3 -3
- package/dist/src/service/completion/DefaultCompletionService.d.ts.map +1 -1
- package/dist/src/service/completion/DefaultCompletionService.js +1 -1
- package/dist/src/service/completion/command/CompletionCompleteSubCommand.d.ts +5 -5
- package/dist/src/service/completion/command/CompletionCompleteSubCommand.d.ts.map +1 -1
- package/dist/src/service/completion/command/CompletionCompleteSubCommand.js +3 -3
- package/dist/src/service/completion/command/CompletionGroupCommand.d.ts +3 -3
- package/dist/src/service/completion/command/CompletionGroupCommand.d.ts.map +1 -1
- package/dist/src/service/completion/command/CompletionIntegrationSubCommand.d.ts +5 -5
- package/dist/src/service/completion/command/CompletionIntegrationSubCommand.d.ts.map +1 -1
- package/dist/src/service/completion/command/CompletionIntegrationSubCommand.js +3 -3
- package/dist/src/service/completion/shell/ShellHandler.d.ts +1 -1
- package/dist/src/service/completion/shell/ShellHandler.d.ts.map +1 -1
- package/dist/src/service/completion/shell/bash.d.ts +1 -1
- package/dist/src/service/completion/shell/bash.d.ts.map +1 -1
- package/dist/src/service/completion/shell/fish.d.ts +1 -1
- package/dist/src/service/completion/shell/fish.d.ts.map +1 -1
- package/dist/src/service/completion/shell/powershell.d.ts +1 -1
- package/dist/src/service/completion/shell/powershell.d.ts.map +1 -1
- package/dist/src/service/completion/shell/zsh.d.ts +1 -1
- package/dist/src/service/completion/shell/zsh.d.ts.map +1 -1
- package/dist/src/service/configuration/ConfigurationServiceProvider.d.ts +5 -5
- package/dist/src/service/configuration/ConfigurationServiceProvider.d.ts.map +1 -1
- package/dist/src/service/configuration/ConfigurationServiceProvider.js +1 -1
- package/dist/src/service/configuration/DefaultKeyValueService.d.ts +1 -1
- package/dist/src/service/configuration/DefaultKeyValueService.d.ts.map +1 -1
- package/dist/src/service/configuration/DefaultKeyValueService.js +1 -1
- package/dist/src/service/configuration/DefaultSecretService.d.ts +1 -1
- package/dist/src/service/configuration/DefaultSecretService.d.ts.map +1 -1
- package/dist/src/service/configuration/command/ConfigCommand.d.ts +4 -4
- package/dist/src/service/configuration/command/ConfigCommand.d.ts.map +1 -1
- package/dist/src/service/configuration/command/ConfigCommand.js +1 -1
- package/dist/src/service/configuration/command/DumpConfigCommand.d.ts +2 -2
- package/dist/src/service/configuration/command/DumpConfigCommand.d.ts.map +1 -1
- package/dist/src/service/configuration/command/DumpConfigCommand.js +2 -2
- package/dist/src/service/dataDumpGenerator/DataDumpGeneratorServiceProvider.d.ts +3 -3
- package/dist/src/service/dataDumpGenerator/DataDumpGeneratorServiceProvider.d.ts.map +1 -1
- package/dist/src/service/dataDumpGenerator/DataDumpGeneratorServiceProvider.js +2 -2
- package/dist/src/service/dataDumpGenerator/DefaultDataDumpGeneratorService.d.ts +2 -2
- package/dist/src/service/dataDumpGenerator/DefaultDataDumpGeneratorService.d.ts.map +1 -1
- package/dist/src/service/dataDumpGenerator/DefaultDataDumpGeneratorService.js +1 -1
- package/dist/src/service/imagePrinter/DefaultImagePrinterService.d.ts +1 -1
- package/dist/src/service/imagePrinter/DefaultImagePrinterService.d.ts.map +1 -1
- package/dist/src/service/imagePrinter/ImagePrinterServiceProvider.d.ts +3 -3
- package/dist/src/service/imagePrinter/ImagePrinterServiceProvider.d.ts.map +1 -1
- package/dist/src/service/imagePrinter/ImagePrinterServiceProvider.js +1 -1
- package/dist/src/service/plugin/DefaultPluginService.d.ts +1 -1
- package/dist/src/service/plugin/DefaultPluginService.d.ts.map +1 -1
- package/dist/src/service/plugin/DefaultPluginServiceProvider.d.ts +3 -3
- package/dist/src/service/plugin/DefaultPluginServiceProvider.d.ts.map +1 -1
- package/dist/src/service/plugin/DefaultPluginServiceProvider.js +1 -1
- package/dist/src/service/plugin/command/PluginAddSubCommand.d.ts +4 -4
- package/dist/src/service/plugin/command/PluginAddSubCommand.d.ts.map +1 -1
- package/dist/src/service/plugin/command/PluginAddSubCommand.js +3 -3
- package/dist/src/service/plugin/command/PluginGroupCommand.d.ts +3 -3
- package/dist/src/service/plugin/command/PluginGroupCommand.d.ts.map +1 -1
- package/dist/src/service/plugin/command/PluginListSubCommand.d.ts +3 -3
- package/dist/src/service/plugin/command/PluginListSubCommand.d.ts.map +1 -1
- package/dist/src/service/plugin/command/PluginListSubCommand.js +2 -2
- package/dist/src/service/plugin/command/PluginRemoveSubCommand.d.ts +4 -4
- package/dist/src/service/plugin/command/PluginRemoveSubCommand.d.ts.map +1 -1
- package/dist/src/service/plugin/command/PluginRemoveSubCommand.js +3 -3
- package/dist/src/service/plugin/command/PluginSearchSubCommand.d.ts +4 -4
- package/dist/src/service/plugin/command/PluginSearchSubCommand.d.ts.map +1 -1
- package/dist/src/service/plugin/command/PluginSearchSubCommand.js +3 -3
- package/dist/src/service/plugin/command/PluginUpgradeSubCommand.d.ts +3 -3
- package/dist/src/service/plugin/command/PluginUpgradeSubCommand.d.ts.map +1 -1
- package/dist/src/service/plugin/command/PluginUpgradeSubCommand.js +2 -2
- package/dist/src/service/prettyPrinter/DefaultPrettyPrinterService.d.ts +2 -2
- package/dist/src/service/prettyPrinter/DefaultPrettyPrinterService.d.ts.map +1 -1
- package/dist/src/service/prettyPrinter/PrettyPrinterServiceProvider.d.ts +3 -3
- package/dist/src/service/prettyPrinter/PrettyPrinterServiceProvider.d.ts.map +1 -1
- package/dist/src/service/prettyPrinter/PrettyPrinterServiceProvider.js +1 -1
- package/dist/src/service/printer/DefaultPrinterService.d.ts +7 -2
- package/dist/src/service/printer/DefaultPrinterService.d.ts.map +1 -1
- package/dist/src/service/printer/DefaultPrinterService.js +60 -3
- package/dist/src/service/printer/PrinterServiceProvider.d.ts +4 -4
- package/dist/src/service/printer/PrinterServiceProvider.d.ts.map +1 -1
- package/dist/src/service/printer/PrinterServiceProvider.js +2 -2
- package/dist/src/service/printer/command/DarkModeCommand.d.ts +4 -4
- package/dist/src/service/printer/command/DarkModeCommand.d.ts.map +1 -1
- package/dist/src/service/printer/command/DarkModeCommand.js +1 -1
- package/dist/src/service/printer/command/LogLevelCommand.d.ts +4 -4
- package/dist/src/service/printer/command/LogLevelCommand.d.ts.map +1 -1
- package/dist/src/service/printer/command/LogLevelCommand.js +2 -2
- package/dist/src/service/printer/command/NoColorCommand.d.ts +4 -4
- package/dist/src/service/printer/command/NoColorCommand.d.ts.map +1 -1
- package/dist/src/service/printer/command/NoColorCommand.js +1 -1
- package/dist/src/service/printer/command/NoHyperlinksCommand.d.ts +4 -4
- package/dist/src/service/printer/command/NoHyperlinksCommand.d.ts.map +1 -1
- package/dist/src/service/printer/command/NoHyperlinksCommand.js +1 -1
- package/dist/src/service/printer/terminal/Progress.d.ts +2 -2
- package/dist/src/service/printer/terminal/Progress.d.ts.map +1 -1
- package/dist/src/service/printer/terminal/Progress.js +2 -2
- package/dist/src/service/printer/terminal/Quote.d.ts +10 -0
- package/dist/src/service/printer/terminal/Quote.d.ts.map +1 -0
- package/dist/src/service/printer/terminal/Quote.js +50 -0
- package/dist/src/service/printer/terminal/Spinner.d.ts +2 -2
- package/dist/src/service/printer/terminal/Spinner.d.ts.map +1 -1
- package/dist/src/service/printer/terminal/Spinner.js +2 -2
- package/dist/src/service/prompter/DefaultPrompterService.d.ts +3 -3
- package/dist/src/service/prompter/DefaultPrompterService.d.ts.map +1 -1
- package/dist/src/service/prompter/DefaultPrompterService.js +1 -1
- package/dist/src/service/prompter/PrompterServiceProvider.d.ts +4 -4
- package/dist/src/service/prompter/PrompterServiceProvider.d.ts.map +1 -1
- package/dist/src/service/prompter/PrompterServiceProvider.js +1 -1
- package/dist/src/service/prompter/command/NoPromptCommand.d.ts +4 -4
- package/dist/src/service/prompter/command/NoPromptCommand.d.ts.map +1 -1
- package/dist/src/service/prompter/command/NoPromptCommand.js +1 -1
- package/dist/src/service/prompter/prompt/PromptContext.d.ts +2 -2
- package/dist/src/service/prompter/prompt/PromptContext.d.ts.map +1 -1
- package/dist/src/service/prompter/prompt/promptAcknowledge.d.ts +1 -1
- package/dist/src/service/prompter/prompt/promptAcknowledge.d.ts.map +1 -1
- package/dist/src/service/prompter/prompt/promptAcknowledge.js +1 -1
- package/dist/src/service/prompter/prompt/promptMultiSelect.d.ts +1 -1
- package/dist/src/service/prompter/prompt/promptMultiSelect.d.ts.map +1 -1
- package/dist/src/service/prompter/prompt/promptOpenUrl.d.ts +1 -1
- package/dist/src/service/prompter/prompt/promptOpenUrl.d.ts.map +1 -1
- package/dist/src/service/prompter/prompt/promptSingleSelect.d.ts +1 -1
- package/dist/src/service/prompter/prompt/promptSingleSelect.d.ts.map +1 -1
- package/dist/src/service/prompter/prompt/promptText.d.ts +1 -1
- package/dist/src/service/prompter/prompt/promptText.d.ts.map +1 -1
- package/dist/src/service/prompter/prompt/promptToggle.d.ts +1 -1
- package/dist/src/service/prompter/prompt/promptToggle.d.ts.map +1 -1
- package/dist/src/service/prompter/prompt/promptToggle.js +1 -1
- package/dist/src/service/shutdown/DefaultShutdownService.d.ts +1 -1
- package/dist/src/service/shutdown/DefaultShutdownService.d.ts.map +1 -1
- package/dist/src/service/shutdown/ShutdownServiceProvider.d.ts +3 -3
- package/dist/src/service/shutdown/ShutdownServiceProvider.d.ts.map +1 -1
- package/dist/src/service/shutdown/ShutdownServiceProvider.js +1 -1
- package/dist/src/service/syntaxHighlighter/DefaultSyntaxHighlighterService.d.ts +2 -2
- package/dist/src/service/syntaxHighlighter/DefaultSyntaxHighlighterService.d.ts.map +1 -1
- package/dist/src/service/syntaxHighlighter/SyntaxHighlighterServiceProvider.d.ts +3 -3
- package/dist/src/service/syntaxHighlighter/SyntaxHighlighterServiceProvider.d.ts.map +1 -1
- package/dist/src/service/syntaxHighlighter/SyntaxHighlighterServiceProvider.js +2 -2
- package/dist/src/service/tableGenerator/DefaultTableGeneratorService.d.ts +3 -3
- package/dist/src/service/tableGenerator/DefaultTableGeneratorService.d.ts.map +1 -1
- package/dist/src/service/tableGenerator/DefaultTableGeneratorService.js +2 -2
- package/dist/src/service/tableGenerator/TableGeneratorServiceProvider.d.ts +3 -3
- package/dist/src/service/tableGenerator/TableGeneratorServiceProvider.d.ts.map +1 -1
- package/dist/src/service/tableGenerator/TableGeneratorServiceProvider.js +2 -2
- package/dist/src/service/treePrinter/DefaultTreePrinterService.d.ts +2 -2
- package/dist/src/service/treePrinter/DefaultTreePrinterService.d.ts.map +1 -1
- package/dist/src/service/treePrinter/TreePrinterServiceProvider.d.ts +3 -3
- package/dist/src/service/treePrinter/TreePrinterServiceProvider.d.ts.map +1 -1
- package/dist/src/service/treePrinter/TreePrinterServiceProvider.js +2 -2
- package/dist/src/util/configHelper.d.ts +4 -4
- package/dist/src/util/configHelper.d.ts.map +1 -1
- package/dist/src/util/envVarHelper.d.ts +4 -4
- package/dist/src/util/envVarHelper.d.ts.map +1 -1
- package/dist/src/util/envVarHelper.js +2 -2
- package/dist/src/util/helpHelper.d.ts +8 -8
- package/dist/src/util/helpHelper.d.ts.map +1 -1
- package/dist/src/util/helpHelper.js +1 -1
- package/dist/src/util/runnerHelper.d.ts +2 -2
- package/dist/src/util/runnerHelper.d.ts.map +1 -1
- package/dist/src/util/runnerHelper.js +1 -1
- package/index.ts +70 -69
- package/package.json +2 -1
- package/src/cli/BaseCLI.ts +10 -10
- package/src/cli/DefaultRuntimeCLI.ts +3 -3
- package/src/cli/DynamicPluginRuntimeCLI.ts +8 -8
- package/src/command/MultiCommandCliHelpCommand.ts +13 -13
- package/src/command/SingleCommandCliHelpCommand.ts +12 -12
- package/src/command/UsageCommand.ts +5 -5
- package/src/command/VersionCommand.ts +4 -4
- package/src/launcher.ts +8 -6
- package/src/runtime/DefaultContext.ts +2 -2
- package/src/runtime/argument/ArgumentTypeGuards.ts +2 -2
- package/src/runtime/command/CommandTypeGuards.ts +5 -5
- package/src/runtime/command/CommandValidator.ts +13 -13
- package/src/runtime/parser.ts +6 -38
- package/src/runtime/registry/DefaultCommandRegistry.ts +6 -6
- package/src/runtime/registry/DefaultServiceProviderRegistry.ts +2 -2
- package/src/runtime/runner.ts +13 -13
- package/src/runtime/scanner.ts +4 -4
- package/src/runtime/values/ValuePopulationResult.ts +2 -2
- package/src/runtime/values/argumentValueMerge.ts +3 -3
- package/src/runtime/values/argumentValueValidation.ts +10 -10
- package/src/runtime/values/globalCommandValuePopulation.ts +4 -4
- package/src/runtime/values/subCommandValuePopulation.ts +10 -7
- package/src/service/argumentPrompter/ArgumentPrompterServiceProvider.ts +5 -5
- package/src/service/argumentPrompter/DefaultArgumentPrompterService.ts +12 -12
- package/src/service/asciiBannerGenerator/AsciiBannerGeneratorServiceProvider.ts +5 -5
- package/src/service/asciiBannerGenerator/DefaultAsciiBannerGeneratorService.ts +2 -5
- package/src/service/banner/BannerServiceProvider.ts +7 -7
- package/src/service/banner/command/NoBannerCommand.ts +4 -4
- package/src/service/chiselAsciiBannerGenerator/ChiselFontAsciiBannerGeneratorService.ts +2 -2
- package/src/service/completion/CompletionServiceProvider.ts +14 -14
- package/src/service/completion/DefaultCompletionService.ts +5 -5
- package/src/service/completion/command/CompletionCompleteSubCommand.ts +8 -8
- package/src/service/completion/command/CompletionGroupCommand.ts +3 -3
- package/src/service/completion/command/CompletionIntegrationSubCommand.ts +8 -8
- package/src/service/completion/shell/ShellHandler.ts +1 -1
- package/src/service/completion/shell/bash.ts +1 -1
- package/src/service/completion/shell/fish.ts +1 -1
- package/src/service/completion/shell/powershell.ts +1 -1
- package/src/service/completion/shell/zsh.ts +1 -1
- package/src/service/configuration/ConfigurationServiceProvider.ts +6 -6
- package/src/service/configuration/DefaultKeyValueService.ts +2 -2
- package/src/service/configuration/DefaultSecretService.ts +1 -1
- package/src/service/configuration/command/ConfigCommand.ts +4 -4
- package/src/service/configuration/command/DumpConfigCommand.ts +6 -6
- package/src/service/dataDumpGenerator/DataDumpGeneratorServiceProvider.ts +6 -6
- package/src/service/dataDumpGenerator/DefaultDataDumpGeneratorService.ts +2 -2
- package/src/service/imagePrinter/DefaultImagePrinterService.ts +1 -1
- package/src/service/imagePrinter/ImagePrinterServiceProvider.ts +4 -4
- package/src/service/plugin/DefaultPluginService.ts +1 -1
- package/src/service/plugin/DefaultPluginServiceProvider.ts +4 -4
- package/src/service/plugin/command/PluginAddSubCommand.ts +8 -8
- package/src/service/plugin/command/PluginGroupCommand.ts +3 -3
- package/src/service/plugin/command/PluginListSubCommand.ts +7 -7
- package/src/service/plugin/command/PluginRemoveSubCommand.ts +8 -8
- package/src/service/plugin/command/PluginSearchSubCommand.ts +8 -8
- package/src/service/plugin/command/PluginUpgradeSubCommand.ts +7 -7
- package/src/service/prettyPrinter/DefaultPrettyPrinterService.ts +3 -3
- package/src/service/prettyPrinter/PrettyPrinterServiceProvider.ts +4 -4
- package/src/service/printer/DefaultPrinterService.ts +70 -8
- package/src/service/printer/PrinterServiceProvider.ts +7 -7
- package/src/service/printer/command/DarkModeCommand.ts +4 -4
- package/src/service/printer/command/LogLevelCommand.ts +5 -5
- package/src/service/printer/command/NoColorCommand.ts +4 -4
- package/src/service/printer/command/NoHyperlinksCommand.ts +4 -4
- package/src/service/printer/terminal/Progress.ts +2 -2
- package/src/service/printer/terminal/Quote.ts +66 -0
- package/src/service/printer/terminal/Spinner.ts +2 -2
- package/src/service/prompter/DefaultPrompterService.ts +3 -3
- package/src/service/prompter/PrompterServiceProvider.ts +5 -5
- package/src/service/prompter/command/NoPromptCommand.ts +4 -4
- package/src/service/prompter/prompt/PromptContext.ts +2 -2
- package/src/service/prompter/prompt/promptAcknowledge.ts +1 -1
- package/src/service/prompter/prompt/promptMultiSelect.ts +1 -1
- package/src/service/prompter/prompt/promptOpenUrl.ts +1 -1
- package/src/service/prompter/prompt/promptSingleSelect.ts +1 -1
- package/src/service/prompter/prompt/promptText.ts +2 -2
- package/src/service/prompter/prompt/promptToggle.ts +1 -1
- package/src/service/shutdown/DefaultShutdownService.ts +1 -1
- package/src/service/shutdown/ShutdownServiceProvider.ts +5 -5
- package/src/service/syntaxHighlighter/DefaultSyntaxHighlighterService.ts +2 -2
- package/src/service/syntaxHighlighter/SyntaxHighlighterServiceProvider.ts +6 -6
- package/src/service/tableGenerator/DefaultTableGeneratorService.ts +4 -4
- package/src/service/tableGenerator/TableGeneratorServiceProvider.ts +6 -6
- package/src/service/treePrinter/DefaultTreePrinterService.ts +2 -2
- package/src/service/treePrinter/TreePrinterServiceProvider.ts +6 -6
- package/src/util/configHelper.ts +6 -6
- package/src/util/envVarHelper.ts +10 -10
- package/src/util/helpHelper.ts +19 -16
- package/src/util/runnerHelper.ts +4 -4
- package/dist/src/api/CLI.d.ts +0 -17
- package/dist/src/api/CLI.d.ts.map +0 -1
- package/dist/src/api/CLI.js +0 -0
- package/dist/src/api/CLIConfig.d.ts +0 -22
- package/dist/src/api/CLIConfig.d.ts.map +0 -1
- package/dist/src/api/CLIConfig.js +0 -0
- package/dist/src/api/Context.d.ts +0 -23
- package/dist/src/api/Context.d.ts.map +0 -1
- package/dist/src/api/Context.js +0 -0
- package/dist/src/api/RunResult.d.ts +0 -128
- package/dist/src/api/RunResult.d.ts.map +0 -1
- package/dist/src/api/RunResult.js +0 -73
- package/dist/src/api/argument/Argument.d.ts +0 -62
- package/dist/src/api/argument/Argument.d.ts.map +0 -1
- package/dist/src/api/argument/Argument.js +0 -0
- package/dist/src/api/argument/ArgumentValueTypes.d.ts +0 -68
- package/dist/src/api/argument/ArgumentValueTypes.d.ts.map +0 -1
- package/dist/src/api/argument/ArgumentValueTypes.js +0 -18
- package/dist/src/api/argument/ComplexOption.d.ts +0 -21
- package/dist/src/api/argument/ComplexOption.d.ts.map +0 -1
- package/dist/src/api/argument/ComplexOption.js +0 -1
- package/dist/src/api/argument/GlobalCommandArgument.d.ts +0 -16
- package/dist/src/api/argument/GlobalCommandArgument.d.ts.map +0 -1
- package/dist/src/api/argument/GlobalCommandArgument.js +0 -0
- package/dist/src/api/argument/Option.d.ts +0 -29
- package/dist/src/api/argument/Option.d.ts.map +0 -1
- package/dist/src/api/argument/Option.js +0 -0
- package/dist/src/api/argument/Positional.d.ts +0 -26
- package/dist/src/api/argument/Positional.d.ts.map +0 -1
- package/dist/src/api/argument/Positional.js +0 -0
- package/dist/src/api/argument/SubCommandArgument.d.ts +0 -18
- package/dist/src/api/argument/SubCommandArgument.d.ts.map +0 -1
- package/dist/src/api/argument/SubCommandArgument.js +0 -1
- package/dist/src/api/command/Command.d.ts +0 -26
- package/dist/src/api/command/Command.d.ts.map +0 -1
- package/dist/src/api/command/Command.js +0 -0
- package/dist/src/api/command/GlobalCommand.d.ts +0 -28
- package/dist/src/api/command/GlobalCommand.d.ts.map +0 -1
- package/dist/src/api/command/GlobalCommand.js +0 -0
- package/dist/src/api/command/GlobalModifierCommand.d.ts +0 -12
- package/dist/src/api/command/GlobalModifierCommand.d.ts.map +0 -1
- package/dist/src/api/command/GlobalModifierCommand.js +0 -0
- package/dist/src/api/command/GroupCommand.d.ts +0 -19
- package/dist/src/api/command/GroupCommand.d.ts.map +0 -1
- package/dist/src/api/command/GroupCommand.js +0 -0
- package/dist/src/api/command/SubCommand.d.ts +0 -37
- package/dist/src/api/command/SubCommand.d.ts.map +0 -1
- package/dist/src/api/command/SubCommand.js +0 -0
- package/dist/src/api/command/UsageExample.d.ts +0 -20
- package/dist/src/api/command/UsageExample.d.ts.map +0 -1
- package/dist/src/api/command/UsageExample.js +0 -0
- package/dist/src/api/plugin/CLIPlugin.d.ts +0 -31
- package/dist/src/api/plugin/CLIPlugin.d.ts.map +0 -1
- package/dist/src/api/plugin/CLIPlugin.js +0 -2
- package/dist/src/api/plugin/CommandFactory.d.ts +0 -23
- package/dist/src/api/plugin/CommandFactory.d.ts.map +0 -1
- package/dist/src/api/plugin/CommandFactory.js +0 -7
- package/dist/src/api/plugin/ServiceProviderFactory.d.ts +0 -25
- package/dist/src/api/plugin/ServiceProviderFactory.d.ts.map +0 -1
- package/dist/src/api/plugin/ServiceProviderFactory.js +0 -7
- package/dist/src/api/plugin/createCLIPlugin.d.ts +0 -14
- package/dist/src/api/plugin/createCLIPlugin.d.ts.map +0 -1
- package/dist/src/api/plugin/createCLIPlugin.js +0 -30
- package/dist/src/api/service/ServiceProvider.d.ts +0 -47
- package/dist/src/api/service/ServiceProvider.d.ts.map +0 -1
- package/dist/src/api/service/ServiceProvider.js +0 -0
- package/dist/src/api/service/core/ArgumentPrompterService.d.ts +0 -6
- package/dist/src/api/service/core/ArgumentPrompterService.d.ts.map +0 -1
- package/dist/src/api/service/core/ArgumentPrompterService.js +0 -1
- package/dist/src/api/service/core/AsciiBannerGeneratorService.d.ts +0 -59
- package/dist/src/api/service/core/AsciiBannerGeneratorService.d.ts.map +0 -1
- package/dist/src/api/service/core/AsciiBannerGeneratorService.js +0 -1
- package/dist/src/api/service/core/CompletionService.d.ts +0 -22
- package/dist/src/api/service/core/CompletionService.d.ts.map +0 -1
- package/dist/src/api/service/core/CompletionService.js +0 -8
- package/dist/src/api/service/core/DataDumpGeneratorService.d.ts +0 -22
- package/dist/src/api/service/core/DataDumpGeneratorService.d.ts.map +0 -1
- package/dist/src/api/service/core/DataDumpGeneratorService.js +0 -7
- package/dist/src/api/service/core/ImagePrinterService.d.ts +0 -21
- package/dist/src/api/service/core/ImagePrinterService.d.ts.map +0 -1
- package/dist/src/api/service/core/ImagePrinterService.js +0 -1
- package/dist/src/api/service/core/KeyValueService.d.ts +0 -40
- package/dist/src/api/service/core/KeyValueService.d.ts.map +0 -1
- package/dist/src/api/service/core/KeyValueService.js +0 -7
- package/dist/src/api/service/core/PluginService.d.ts +0 -55
- package/dist/src/api/service/core/PluginService.d.ts.map +0 -1
- package/dist/src/api/service/core/PluginService.js +0 -6
- package/dist/src/api/service/core/PrettyPrinterService.d.ts +0 -35
- package/dist/src/api/service/core/PrettyPrinterService.d.ts.map +0 -1
- package/dist/src/api/service/core/PrettyPrinterService.js +0 -1
- package/dist/src/api/service/core/PrinterService.d.ts +0 -339
- package/dist/src/api/service/core/PrinterService.d.ts.map +0 -1
- package/dist/src/api/service/core/PrinterService.js +0 -42
- package/dist/src/api/service/core/PrompterService.d.ts +0 -35
- package/dist/src/api/service/core/PrompterService.d.ts.map +0 -1
- package/dist/src/api/service/core/PrompterService.js +0 -10
- package/dist/src/api/service/core/SecretService.d.ts +0 -25
- package/dist/src/api/service/core/SecretService.d.ts.map +0 -1
- package/dist/src/api/service/core/SecretService.js +0 -0
- package/dist/src/api/service/core/ShutdownService.d.ts +0 -24
- package/dist/src/api/service/core/ShutdownService.d.ts.map +0 -1
- package/dist/src/api/service/core/ShutdownService.js +0 -1
- package/dist/src/api/service/core/SyntaxHighlighterService.d.ts +0 -49
- package/dist/src/api/service/core/SyntaxHighlighterService.d.ts.map +0 -1
- package/dist/src/api/service/core/SyntaxHighlighterService.js +0 -1
- package/dist/src/api/service/core/Table.d.ts +0 -18
- package/dist/src/api/service/core/Table.d.ts.map +0 -1
- package/dist/src/api/service/core/Table.js +0 -49
- package/dist/src/api/service/core/TableGeneratorService.d.ts +0 -32
- package/dist/src/api/service/core/TableGeneratorService.d.ts.map +0 -1
- package/dist/src/api/service/core/TableGeneratorService.js +0 -7
- package/dist/src/api/service/core/TreePrinterService.d.ts +0 -9
- package/dist/src/api/service/core/TreePrinterService.d.ts.map +0 -1
- package/dist/src/api/service/core/TreePrinterService.js +0 -1
- package/dist/src/runtime/registry/CommandRegistry.d.ts +0 -89
- package/dist/src/runtime/registry/CommandRegistry.d.ts.map +0 -1
- package/dist/src/runtime/registry/CommandRegistry.js +0 -0
- package/dist/src/runtime/registry/ServiceProviderRegistry.d.ts +0 -11
- package/dist/src/runtime/registry/ServiceProviderRegistry.d.ts.map +0 -1
- package/dist/src/runtime/registry/ServiceProviderRegistry.js +0 -0
- package/src/api/CLI.ts +0 -17
- package/src/api/CLIConfig.ts +0 -24
- package/src/api/Context.ts +0 -25
- package/src/api/RunResult.ts +0 -158
- package/src/api/argument/Argument.ts +0 -75
- package/src/api/argument/ArgumentValueTypes.ts +0 -80
- package/src/api/argument/ComplexOption.ts +0 -27
- package/src/api/argument/GlobalCommandArgument.ts +0 -17
- package/src/api/argument/Option.ts +0 -32
- package/src/api/argument/Positional.ts +0 -27
- package/src/api/argument/SubCommandArgument.ts +0 -20
- package/src/api/command/Command.ts +0 -28
- package/src/api/command/GlobalCommand.ts +0 -30
- package/src/api/command/GlobalModifierCommand.ts +0 -12
- package/src/api/command/GroupCommand.ts +0 -20
- package/src/api/command/SubCommand.ts +0 -41
- package/src/api/command/UsageExample.ts +0 -21
- package/src/api/plugin/CLIPlugin.ts +0 -35
- package/src/api/plugin/CommandFactory.ts +0 -25
- package/src/api/plugin/ServiceProviderFactory.ts +0 -27
- package/src/api/plugin/createCLIPlugin.ts +0 -47
- package/src/api/service/ServiceProvider.ts +0 -52
- package/src/api/service/core/ArgumentPrompterService.ts +0 -8
- package/src/api/service/core/AsciiBannerGeneratorService.ts +0 -69
- package/src/api/service/core/CompletionService.ts +0 -32
- package/src/api/service/core/DataDumpGeneratorService.ts +0 -27
- package/src/api/service/core/ImagePrinterService.ts +0 -25
- package/src/api/service/core/KeyValueService.ts +0 -44
- package/src/api/service/core/PluginService.ts +0 -63
- package/src/api/service/core/PrettyPrinterService.ts +0 -39
- package/src/api/service/core/PrinterService.ts +0 -400
- package/src/api/service/core/PrompterService.ts +0 -42
- package/src/api/service/core/SecretService.ts +0 -27
- package/src/api/service/core/ShutdownService.ts +0 -27
- package/src/api/service/core/SyntaxHighlighterService.ts +0 -54
- package/src/api/service/core/Table.ts +0 -67
- package/src/api/service/core/TableGeneratorService.ts +0 -39
- package/src/api/service/core/TreePrinterService.ts +0 -10
- package/src/runtime/registry/CommandRegistry.ts +0 -116
- package/src/runtime/registry/ServiceProviderRegistry.ts +0 -11
- /package/dist/src/{api → cli}/BaseCLIFeatureOptions.d.ts +0 -0
- /package/dist/src/{api → cli}/BaseCLIFeatureOptions.js +0 -0
- /package/src/{api → cli}/BaseCLIFeatureOptions.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import BaseCLI from "./BaseCLI.ts";
|
|
2
|
-
import type RunResult from "
|
|
3
|
-
import type CLIConfig from "
|
|
4
|
-
import type BaseCLIFeatureOptions from "
|
|
2
|
+
import type { RunResult } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { CLIConfig } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type BaseCLIFeatureOptions from "./BaseCLIFeatureOptions.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Default Bun implementation of a {@link CLI} using `process.stdout`, `process.stderr` and `process.argv`.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultRuntimeCLI.d.ts","sourceRoot":"","sources":["../../../src/cli/DefaultRuntimeCLI.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"DefaultRuntimeCLI.d.ts","sourceRoot":"","sources":["../../../src/cli/DefaultRuntimeCLI.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAQpE;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,OAAO;gBACxC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAkBlD,GAAG,IAAI,OAAO,CAAC,SAAS,CAAC;CAIzC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MarketplacePluginManager } from "@flowscripter/dynamic-plugin-framework";
|
|
2
|
-
import type CLIConfig from "
|
|
3
|
-
import type BaseCLIFeatureOptions from "
|
|
4
|
-
import type RunResult from "
|
|
2
|
+
import type { CLIConfig } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type BaseCLIFeatureOptions from "./BaseCLIFeatureOptions.ts";
|
|
4
|
+
import type { RunResult } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
import DefaultRuntimeCLI from "./DefaultRuntimeCLI.ts";
|
|
6
6
|
/**
|
|
7
7
|
* Extension of {@link DefaultRuntimeCLI} that discovers and loads installed plugins before running.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicPluginRuntimeCLI.d.ts","sourceRoot":"","sources":["../../../src/cli/DynamicPluginRuntimeCLI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"DynamicPluginRuntimeCLI.d.ts","sourceRoot":"","sources":["../../../src/cli/DynamicPluginRuntimeCLI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AAQvD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,iBAAiB;;gBAIlE,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,wBAAwB,EACvC,OAAO,CAAC,EAAE,qBAAqB;IAOlB,GAAG,IAAI,OAAO,CAAC,SAAS,CAAC;IAUlC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CAgCnC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RunState } from "
|
|
1
|
+
import { RunState } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import DefaultRuntimeCLI from "./DefaultRuntimeCLI.js";
|
|
3
3
|
import DefaultPluginServiceProvider from "../service/plugin/DefaultPluginServiceProvider.js";
|
|
4
|
-
import { DYNAMIC_CLI_FRAMEWORK_COMMAND_FACTORY_EXTENSION_POINT } from "
|
|
5
|
-
import { DYNAMIC_CLI_FRAMEWORK_SERVICE_PROVIDER_FACTORY_EXTENSION_POINT } from "
|
|
4
|
+
import { DYNAMIC_CLI_FRAMEWORK_COMMAND_FACTORY_EXTENSION_POINT } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import { DYNAMIC_CLI_FRAMEWORK_SERVICE_PROVIDER_FACTORY_EXTENSION_POINT } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
/**
|
|
8
8
|
* Extension of {@link DefaultRuntimeCLI} that discovers and loads installed plugins before running.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type Positional from "
|
|
2
|
-
import type Option from "
|
|
3
|
-
import type SubCommand from "
|
|
4
|
-
import type GlobalCommand from "
|
|
5
|
-
import { type ArgumentSingleValueType, type ArgumentValues, ArgumentValueTypeName } from "
|
|
6
|
-
import type Context from "
|
|
7
|
-
import type CommandRegistry from "
|
|
1
|
+
import type { Positional } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { Option } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import { type ArgumentSingleValueType, type ArgumentValues, ArgumentValueTypeName } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
|
+
import type { CommandRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
8
8
|
/**
|
|
9
9
|
* Provides common implementation for both {@link MultiCommandCliHelpGlobalCommand} and {@link MultiCommandCliHelpSubCommand}.
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiCommandCliHelpCommand.d.ts","sourceRoot":"","sources":["../../../src/command/MultiCommandCliHelpCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM
|
|
1
|
+
{"version":3,"file":"MultiCommandCliHelpCommand.d.ts","sourceRoot":"","sources":["../../../src/command/MultiCommandCliHelpCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,qBAAqB,EACtB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAYvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAM/E;;GAEG;AACH,uBAAe,kCAAkC;;IAC/C,QAAQ,CAAC,IAAI,UAAU;IACvB,QAAQ,CAAC,WAAW,8BAA8B;gBAItC,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe;cAiIrD,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;cA+CjD,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAoFrF;AAED;;GAEG;AACH,qBAAa,gCACX,SAAQ,kCACR,YAAW,aAAa;IAExB,QAAQ,CAAC,UAAU,OAAO;IAE1B,QAAQ,CAAC,QAAQ;;;;MAIf;IAEW,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAQ/F;AAED;;GAEG;AACH,qBAAa,6BACX,SAAQ,kCACR,YAAW,UAAU;IAErB,SAAgB,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAM;IAEpD,SAAgB,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,CAOpD;IAEW,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAQtF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ArgumentValueTypeName, } from "
|
|
1
|
+
import { ArgumentValueTypeName, } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import { findPossibleCommandNames, getCommandArgsHelpSections, getCommandExamplesHelpSections, getGlobalArgumentHelpEntry, getMultiCommandAppSyntax, getSubCommandArgumentsSyntax, printHelpSections, } from "../util/helpHelper.js";
|
|
3
|
-
import { Icon, PRINTER_SERVICE_ID } from "
|
|
4
|
-
import { TABLE_GENERATOR_SERVICE_ID } from "
|
|
3
|
+
import { Icon, PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import { TABLE_GENERATOR_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
/**
|
|
6
6
|
* Provides common implementation for both {@link MultiCommandCliHelpGlobalCommand} and {@link MultiCommandCliHelpSubCommand}.
|
|
7
7
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type GlobalCommand from "
|
|
2
|
-
import type SubCommand from "
|
|
3
|
-
import type Option from "
|
|
4
|
-
import type Positional from "
|
|
5
|
-
import type Context from "
|
|
6
|
-
import type CommandRegistry from "
|
|
1
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { Option } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { Positional } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
|
+
import type { CommandRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
7
|
/**
|
|
8
8
|
* Provides common implementation for both {@link SingleCommandCliHelpGlobalCommand} and {@link SingleCommandCliHelpSubCommand}.
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleCommandCliHelpCommand.d.ts","sourceRoot":"","sources":["../../../src/command/SingleCommandCliHelpCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,
|
|
1
|
+
{"version":3,"file":"SingleCommandCliHelpCommand.d.ts","sourceRoot":"","sources":["../../../src/command/SingleCommandCliHelpCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAYvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAM/E;;GAEG;AACH,uBAAe,mCAAmC;;gBAM9C,cAAc,EAAE,OAAO,EACvB,cAAc,EAAE,UAAU,EAC1B,eAAe,EAAE,eAAe;IAOlC,QAAQ,CAAC,IAAI,UAAU;IAEvB,QAAQ,CAAC,WAAW,8BAA8B;IAuErC,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CA6CtD;AAED;;GAEG;AACH,qBAAa,iCACX,SAAQ,mCACR,YAAW,aAAa;IAExB,QAAQ,CAAC,UAAU,OAAO;CAC3B;AAED;;GAEG;AACH,qBAAa,8BACX,SAAQ,mCACR,YAAW,UAAU;IAErB,SAAgB,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAM;IAEpD,SAAgB,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,CAAM;CAC7D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCommandArgsHelpSections, getCommandExamplesHelpSections, getGlobalArgumentHelpEntry, getSubCommandArgumentsSyntax, printHelpSections, } from "../util/helpHelper.js";
|
|
2
|
-
import { PRINTER_SERVICE_ID } from "
|
|
3
|
-
import { TABLE_GENERATOR_SERVICE_ID } from "
|
|
2
|
+
import { PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import { TABLE_GENERATOR_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
4
|
/**
|
|
5
5
|
* Provides common implementation for both {@link SingleCommandCliHelpGlobalCommand} and {@link SingleCommandCliHelpSubCommand}.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type Context from "
|
|
2
|
-
import type GlobalCommand from "
|
|
3
|
-
import type Command from "
|
|
1
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { Command } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
4
|
/**
|
|
5
5
|
* Command printing basic CLI usage.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsageCommand.d.ts","sourceRoot":"","sources":["../../../src/command/UsageCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"UsageCommand.d.ts","sourceRoot":"","sources":["../../../src/command/UsageCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAIvE;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,YAAW,aAAa;;IACxD,QAAQ,CAAC,IAAI,WAAW;IACxB,QAAQ,CAAC,WAAW,4BAA4B;gBAI7B,WAAW,EAAE,OAAO;IAI1B,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAStD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type Context from "
|
|
2
|
-
import type GlobalCommand from "
|
|
1
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
/**
|
|
4
4
|
* Implementation of a {@link GlobalCommand} which outputs the version of the CLI.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionCommand.d.ts","sourceRoot":"","sources":["../../../src/command/VersionCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"VersionCommand.d.ts","sourceRoot":"","sources":["../../../src/command/VersionCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAI7E;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,aAAa;IAC1D,QAAQ,CAAC,IAAI,aAAa;IAC1B,QAAQ,CAAC,WAAW,8BAA8B;IAClD,QAAQ,CAAC,UAAU,OAAO;IAEb,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAItD"}
|
package/dist/src/launcher.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type Command from "./api/command/Command.ts";
|
|
4
|
-
import type RunResult from "./api/RunResult.ts";
|
|
5
|
-
import type { ServiceProvider } from "./api/service/ServiceProvider.ts";
|
|
1
|
+
import type { SubCommand, Command, RunResult, ServiceProvider } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type BaseCLIFeatureOptions from "./cli/BaseCLIFeatureOptions.ts";
|
|
6
3
|
import type { MarketplacePluginManager } from "@flowscripter/dynamic-plugin-framework";
|
|
7
4
|
export declare function launchSingleCommandCLI(command: SubCommand, description?: string, name?: string, version?: string, serviceProviders?: ReadonlyArray<ServiceProvider>, options?: BaseCLIFeatureOptions): Promise<RunResult>;
|
|
8
5
|
export declare function launchMultiCommandCLI(commands: ReadonlyArray<Command>, description?: string, name?: string, version?: string, serviceProviders?: ReadonlyArray<ServiceProvider>, options?: BaseCLIFeatureOptions): Promise<RunResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../../src/launcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../../src/launcher.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,UAAU,EACV,OAAO,EACP,SAAS,EACT,eAAe,EAChB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,qBAAqB,MAAM,gCAAgC,CAAC;AAGxE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,UAAU,EACnB,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,gBAAgB,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,EACjD,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,SAAS,CAAC,CAuBpB;AAED,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,EAChC,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,gBAAgB,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,EACjD,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,SAAS,CAAC,CAuBpB;AAED,wBAAsB,kCAAkC,CACtD,aAAa,EAAE,wBAAwB,EACvC,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,EAChC,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,gBAAgB,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,EACjD,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,SAAS,CAAC,CAuBpB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type Context from "
|
|
2
|
-
import type CLIConfig from "
|
|
1
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { CLIConfig } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
/**
|
|
4
4
|
* Default implementation of a {@link Context}.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultContext.d.ts","sourceRoot":"","sources":["../../../src/runtime/DefaultContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"DefaultContext.d.ts","sourceRoot":"","sources":["../../../src/runtime/DefaultContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,YAAW,OAAO;;IAGjC,QAAQ,CAAC,SAAS,EAAE,SAAS;gBAApB,SAAS,EAAE,SAAS;IAEzC,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO;IAOvD,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAOnC,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;CAG7C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type Argument from "
|
|
2
|
-
import type ComplexOption from "
|
|
1
|
+
import type { Argument } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { ComplexOption } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
export declare function isComplexOption(argument: Argument | ComplexOption): argument is ComplexOption;
|
|
4
4
|
//# sourceMappingURL=ArgumentTypeGuards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArgumentTypeGuards.d.ts","sourceRoot":"","sources":["../../../../src/runtime/argument/ArgumentTypeGuards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"ArgumentTypeGuards.d.ts","sourceRoot":"","sources":["../../../../src/runtime/argument/ArgumentTypeGuards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,aAAa,GAAG,QAAQ,IAAI,aAAa,CAE7F"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type SubCommand from "
|
|
2
|
-
import type GroupCommand from "
|
|
3
|
-
import type GlobalCommand from "
|
|
4
|
-
import type GlobalModifierCommand from "
|
|
5
|
-
import type Command from "
|
|
1
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { GroupCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { GlobalModifierCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import type { Command } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
6
|
export declare function isGroupCommand(command: Command): command is GroupCommand;
|
|
7
7
|
export declare function isSubCommand(command: Command): command is SubCommand;
|
|
8
8
|
export declare function isGlobalModifierCommand(command: Command): command is GlobalModifierCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandTypeGuards.d.ts","sourceRoot":"","sources":["../../../../src/runtime/command/CommandTypeGuards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"CommandTypeGuards.d.ts","sourceRoot":"","sources":["../../../../src/runtime/command/CommandTypeGuards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAEvE,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,YAAY,CAExE;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,UAAU,CAEpE;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,qBAAqB,CAE1F;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,aAAa,CAE1E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type Command from "
|
|
2
|
-
import type CLIConfig from "
|
|
1
|
+
import type { Command } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { CLIConfig } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
export default class CommandValidator {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(cliConfig: CLIConfig);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandValidator.d.ts","sourceRoot":"","sources":["../../../../src/runtime/command/CommandValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"CommandValidator.d.ts","sourceRoot":"","sources":["../../../../src/runtime/command/CommandValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAoBvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAyJzE,MAAM,CAAC,OAAO,OAAO,gBAAgB;;gBAIhB,SAAS,EAAE,SAAS;IAIvC;;;;;;OAMG;IACI,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CA0WxC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isGroupCommand, isSubCommand } from "./CommandTypeGuards.js";
|
|
2
|
-
import { ArgumentValueTypeName, ComplexValueTypeName, } from "
|
|
2
|
+
import { ArgumentValueTypeName, ComplexValueTypeName, } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
import { isComplexOption } from "../argument/ArgumentTypeGuards.js";
|
|
4
4
|
import { getInvalidArgumentString, validateGlobalCommandArgumentValue, validateOptionValue, } from "../values/argumentValueValidation.js";
|
|
5
5
|
import getLogger from "../../util/logger.js";
|
|
@@ -1,36 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type { PopulatedArgumentSingleValueType, PopulatedArgumentValues } from "../api/argument/ArgumentValueTypes.ts";
|
|
4
|
-
import type { InvalidArgument } from "../api/RunResult.ts";
|
|
1
|
+
import type { PopulatedArgumentSingleValueType, PopulatedArgumentValues } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { ParseResult } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
3
|
import type { CommandClause } from "./scanner.ts";
|
|
6
|
-
|
|
7
|
-
* A container holding the result of a command clause parsing operation.
|
|
8
|
-
*/
|
|
9
|
-
export interface ParseResult {
|
|
10
|
-
/**
|
|
11
|
-
* The {@link Command} to execute if the parse result is valid (i.e. {@link invalidArguments} is empty).
|
|
12
|
-
*/
|
|
13
|
-
readonly command: Command;
|
|
14
|
-
/**
|
|
15
|
-
* Optional parent {@link GroupCommand} if the parsed {@link command} was a member {@link SubCommand},
|
|
16
|
-
*/
|
|
17
|
-
readonly groupCommand?: GroupCommand;
|
|
18
|
-
/**
|
|
19
|
-
* The argument values populated from the command line args. If the parse result is valid
|
|
20
|
-
* (i.e. {@link invalidArguments} is empty), this can be used to execute the specified {@link command}.
|
|
21
|
-
* {@link PopulatedArgumentSingleValueType} is for {@link GlobalCommand} values, {@link PopulatedArgumentValues} is for
|
|
22
|
-
* {@link SubCommand} values.
|
|
23
|
-
*/
|
|
24
|
-
readonly populatedArgumentValues: PopulatedArgumentValues | PopulatedArgumentSingleValueType;
|
|
25
|
-
/**
|
|
26
|
-
* Any arguments which were invalid.
|
|
27
|
-
*/
|
|
28
|
-
readonly invalidArguments: ReadonlyArray<InvalidArgument>;
|
|
29
|
-
/**
|
|
30
|
-
* Any arguments which were unused in the parsing operation.
|
|
31
|
-
*/
|
|
32
|
-
readonly unusedArgs: ReadonlyArray<string>;
|
|
33
|
-
}
|
|
4
|
+
export type { ParseResult } from "@flowscripter/dynamic-cli-framework-api";
|
|
34
5
|
/**
|
|
35
6
|
* Parse the arguments for the specified {@link CommandClause} assuming it contains a {@link SubCommand}.
|
|
36
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/runtime/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/runtime/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,gCAAgC,EAChC,uBAAuB,EACxB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAclD,YAAY,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAE3E;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,aAAa,EAC5B,aAAa,CAAC,EAAE,uBAAuB,GACtC,WAAW,CAiFb;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,aAAa,EAAE,aAAa,EAC5B,YAAY,CAAC,EAAE,gCAAgC,GAC9C,WAAW,CA0Db"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type CommandRegistry from "
|
|
2
|
-
import type GlobalCommand from "
|
|
3
|
-
import type GlobalModifierCommand from "
|
|
4
|
-
import type GroupCommand from "
|
|
5
|
-
import type SubCommand from "
|
|
6
|
-
import type Command from "
|
|
1
|
+
import type { CommandRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { GlobalModifierCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { GroupCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
|
+
import type { Command } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
7
|
import type CommandValidator from "../command/CommandValidator.ts";
|
|
8
8
|
/**
|
|
9
9
|
* Default implementation of a {@link CommandRegistry}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultCommandRegistry.d.ts","sourceRoot":"","sources":["../../../../src/runtime/registry/DefaultCommandRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"DefaultCommandRegistry.d.ts","sourceRoot":"","sources":["../../../../src/runtime/registry/DefaultCommandRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAQvE,OAAO,KAAK,gBAAgB,MAAM,gCAAgC,CAAC;AAInE;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAuB,YAAW,eAAe;;IA0BpE;;;;;OAKG;gBACgB,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC,EAAE,gBAAgB;IAiDlF,cAAc,IAAI,aAAa,CAAC,UAAU,CAAC;IAI3C,gBAAgB,IAAI,aAAa,CAAC,YAAY,CAAC;IAI/C,iBAAiB,IAAI,aAAa,CAAC,aAAa,CAAC;IAIjD,yBAAyB,IAAI,aAAa,CAAC,qBAAqB,CAAC;IAIxE;;;;;;OAMG;IACI,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;IAmEtD,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAIzD,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAI7D,8CAA8C,CACnD,4BAA4B,EAAE,MAAM,GACnC;QAAE,YAAY,EAAE,YAAY,CAAC;QAAC,OAAO,EAAE,UAAU,CAAA;KAAE,GAAG,SAAS;IAI3D,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IAI/D,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS;IAI/E,qCAAqC,IAAI,WAAW,CACzD,MAAM,EACN;QAAE,YAAY,EAAE,YAAY,CAAC;QAAC,OAAO,EAAE,UAAU,CAAA;KAAE,CACpD;IAIM,gDAAgD,CACrD,SAAS,EAAE,MAAM,GAChB,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC;IAUtC,sDAAsD,CAC3D,SAAS,EAAE,MAAM,GAChB,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC;IAUtC,mDAAmD,IAAI,WAAW,CACvE,MAAM,EACN,qBAAqB,CACtB;IAIM,yDAAyD,IAAI,WAAW,CAC7E,MAAM,EACN,qBAAqB,CACtB;IAIM,4BAA4B,IAAI,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC;IAI5D,6BAA6B,IAAI,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC;CAG3E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type ServiceProviderRegistry from "
|
|
2
|
-
import type { ServiceProvider } from "
|
|
1
|
+
import type { ServiceProviderRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { ServiceProvider } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
/**
|
|
4
4
|
* Default implementation of a {@link ServiceProviderRegistry}.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultServiceProviderRegistry.d.ts","sourceRoot":"","sources":["../../../../src/runtime/registry/DefaultServiceProviderRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,
|
|
1
|
+
{"version":3,"file":"DefaultServiceProviderRegistry.d.ts","sourceRoot":"","sources":["../../../../src/runtime/registry/DefaultServiceProviderRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAK/E;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,8BAA+B,YAAW,uBAAuB;;gBAGjE,gBAAgB,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC;IAM7D,kBAAkB,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI;IAK1D,mBAAmB,IAAI,aAAa,CAAC,eAAe,CAAC;CAG7D"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type Context from "
|
|
2
|
-
import type RunResult from "
|
|
3
|
-
import type CommandRegistry from "
|
|
4
|
-
import type ServiceProviderRegistry from "
|
|
1
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { RunResult } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { CommandRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { ServiceProviderRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
import type ConfigurationServiceProvider from "../service/configuration/ConfigurationServiceProvider.ts";
|
|
6
|
-
import type Command from "
|
|
6
|
+
import type { Command } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
7
|
/**
|
|
8
8
|
* Scan arguments and execute the parsed {@link Command} clauses with provided argument values
|
|
9
9
|
* using the provided {@link Context}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/runtime/runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/runtime/runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAiB/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAEvF,OAAO,KAAK,4BAA4B,MAAM,0DAA0D,CAAC;AAKzG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AA4evE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAsB,GAAG,CACvB,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,EAC3B,eAAe,EAAE,eAAe,EAChC,uBAAuB,EAAE,uBAAuB,EAChD,4BAA4B,EAAE,4BAA4B,GAAG,SAAS,EACtE,OAAO,EAAE,OAAO,EAChB,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAAC,SAAS,CAAC,CAgJpB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RunState } from "
|
|
1
|
+
import { RunState } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import { isGlobalCommand, isSubCommand } from "./command/CommandTypeGuards.js";
|
|
3
3
|
import getLogger from "../util/logger.js";
|
|
4
4
|
import { printCommandExecutionError, printNoCommandRecognisedError, printNoCommandSpecifiedError, printParseResultError, printUnusedArgsWarning, } from "../util/runnerHelper.js";
|
|
5
5
|
import { scanForGlobalModifierCommandClauses, scanForNonModifierCommandClause } from "./scanner.js";
|
|
6
6
|
import { parseGlobalCommandClause, parseSubCommandClause } from "./parser.js";
|
|
7
|
-
import { ARGUMENT_PROMPTER_SERVICE_ID } from "
|
|
7
|
+
import { ARGUMENT_PROMPTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
8
8
|
const logger = getLogger("runner");
|
|
9
9
|
async function attemptPromptForMissingArguments(parseResult, context) {
|
|
10
10
|
if (!context.doesServiceExist(ARGUMENT_PROMPTER_SERVICE_ID)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type GroupCommand from "
|
|
2
|
-
import type GlobalModifierCommand from "
|
|
3
|
-
import type Command from "
|
|
4
|
-
import type SubCommand from "
|
|
1
|
+
import type { GroupCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { GlobalModifierCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { Command } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
/**
|
|
6
6
|
* A result from scanning arguments for commands.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanner.d.ts","sourceRoot":"","sources":["../../../src/runtime/scanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"scanner.d.ts","sourceRoot":"","sources":["../../../src/runtime/scanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAK1E;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,wBAAwB,CAAC,EAAE,aAAa,CAAC;IAEzC;;OAEG;IACH,4BAA4B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAEpD;;;;;;;OAOG;IACH,kBAAkB,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;CAClD;AAiND;;;;;;;GAOG;AACH,wBAAgB,mCAAmC,CACjD,YAAY,EAAE,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAClD,4BAA4B,EAAE,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC,EACxE,kCAAkC,EAAE,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC,GAC7E,UAAU,CAgEZ;AAED;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAClD,yBAAyB,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACvD,0BAA0B,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACzD,kCAAkC,CAAC,EAAE,WAAW,CAC9C,MAAM,EACN;IAAE,YAAY,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,UAAU,CAAA;CAAE,CACpD,GACA,UAAU,CA0CZ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PopulatedArgumentSingleValueType, PopulatedArgumentValues } from "
|
|
2
|
-
import type { InvalidArgument } from "
|
|
1
|
+
import type { PopulatedArgumentSingleValueType, PopulatedArgumentValues } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { InvalidArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
/**
|
|
4
4
|
* A base interface for a container holding the result of argument value population.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuePopulationResult.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/ValuePopulationResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,uBAAuB,EACxB,MAAM,
|
|
1
|
+
{"version":3,"file":"ValuePopulationResult.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/ValuePopulationResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,uBAAuB,EACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAE3C;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,qBAAqB;IAC5E;;OAEG;IACH,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;CAC3D;AAED;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,qBAAqB;IAC/E;;OAEG;IACH,QAAQ,CAAC,sBAAsB,EAAE,gCAAgC,CAAC;CACnE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PopulatedArgumentValues } from "
|
|
1
|
+
import type { PopulatedArgumentValues } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
/**
|
|
3
3
|
* Deep merge of provided default argument values with overridden argument values. The result is a cloned instance
|
|
4
4
|
* of `defaults` with values in `override` cloned and merged in the result.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argumentValueMerge.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/argumentValueMerge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,uBAAuB,EAExB,MAAM,
|
|
1
|
+
{"version":3,"file":"argumentValueMerge.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/argumentValueMerge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,uBAAuB,EAExB,MAAM,yCAAyC,CAAC;AAuKjD;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,QAAQ,EAAE,uBAAuB,EACjC,QAAQ,EAAE,uBAAuB,GAChC,uBAAuB,CAEzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MAXIMUM_ARGUMENT_ARRAY_SIZE } from "
|
|
2
|
-
import { MAXIMUM_COMPLEX_OPTION_NESTING_DEPTH } from "
|
|
1
|
+
import { MAXIMUM_ARGUMENT_ARRAY_SIZE } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import { MAXIMUM_COMPLEX_OPTION_NESTING_DEPTH } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
function doClone(source, nestingLevel) {
|
|
4
4
|
if (source === undefined) {
|
|
5
5
|
return source;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { PopulatedArgumentSingleValueType, PopulatedArgumentValues, PopulatedArgumentValueType } from "
|
|
2
|
-
import type Positional from "
|
|
3
|
-
import type Option from "
|
|
4
|
-
import type ComplexOption from "
|
|
5
|
-
import type { InvalidArgument } from "
|
|
6
|
-
import type GlobalCommand from "
|
|
1
|
+
import type { PopulatedArgumentSingleValueType, PopulatedArgumentValues, PopulatedArgumentValueType } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { Positional } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { Option } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { ComplexOption } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import type { InvalidArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
7
|
/**
|
|
8
8
|
* Validates the provided value against the provided {@link Option}.
|
|
9
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argumentValueValidation.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/argumentValueValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,gCAAgC,EAChC,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,
|
|
1
|
+
{"version":3,"file":"argumentValueValidation.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/argumentValueValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,gCAAgC,EAChC,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,yCAAyC,CAAC;AAKjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAI/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAmc7E;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,GAAG,aAAa,EAC9B,KAAK,EACD,0BAA0B,GAC1B,uBAAuB,GACvB,KAAK,CAAC,uBAAuB,GAAG,SAAS,CAAC,EAC9C,gBAAgB,EAAE,KAAK,CAAC,eAAe,CAAC,GACvC,0BAA0B,GAAG,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAQvF;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,0BAA0B,EACjC,gBAAgB,EAAE,KAAK,CAAC,eAAe,CAAC,GACvC,0BAA0B,CAQ5B;AAED;;;;;;;GAOG;AACH,wBAAgB,kCAAkC,CAChD,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,gCAAgC,EACvC,gBAAgB,EAAE,KAAK,CAAC,eAAe,CAAC,GACvC,gCAAgC,CAqDlC;AAED,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,OAAO,GACnB,MAAM,CA4DR"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ArgumentValueTypeName, ComplexValueTypeName, } from "
|
|
1
|
+
import { ArgumentValueTypeName, ComplexValueTypeName, } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import { isComplexOption } from "../argument/ArgumentTypeGuards.js";
|
|
3
|
-
import { InvalidArgumentReason } from "
|
|
3
|
+
import { InvalidArgumentReason } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
4
|
/**
|
|
5
5
|
* Validates the provided primitive value against the provided {@link Argument}.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type GlobalCommand from "
|
|
1
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import type { GlobalCommandValuePopulationResult } from "./ValuePopulationResult.ts";
|
|
3
|
-
import type { PopulatedArgumentSingleValueType } from "
|
|
3
|
+
import type { PopulatedArgumentSingleValueType } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
4
|
/**
|
|
5
5
|
* Attempt to populate a {@link ArgumentValueType} for the provided {@link GlobalCommand} using the provided potential args.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalCommandValuePopulation.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/globalCommandValuePopulation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,
|
|
1
|
+
{"version":3,"file":"globalCommandValuePopulation.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/globalCommandValuePopulation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAMhG;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAChD,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,EACpC,YAAY,EAAE,gCAAgC,GAC7C,kCAAkC,CAkEpC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ArgumentValueTypeName } from "
|
|
1
|
+
import { ArgumentValueTypeName } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import getLogger from "../../util/logger.js";
|
|
3
|
-
import { InvalidArgumentReason } from "
|
|
3
|
+
import { InvalidArgumentReason } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
4
|
const logger = getLogger("globalCommandValuePopulation");
|
|
5
5
|
/**
|
|
6
6
|
* Attempt to populate a {@link ArgumentValueType} for the provided {@link GlobalCommand} using the provided potential args.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type SubCommand from "
|
|
2
|
-
import { type PopulatedArgumentValues } from "
|
|
1
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import { type PopulatedArgumentValues } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
import type { SubCommandValuePopulationResult } from "./ValuePopulationResult.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Populate {@link PopulatedArgumentValues} for the provided {@link SubCommand} using the provided potential args.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subCommandValuePopulation.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/subCommandValuePopulation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"subCommandValuePopulation.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/subCommandValuePopulation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAIL,KAAK,uBAAuB,EAE7B,MAAM,yCAAyC,CAAC;AAGjD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AA4jBlF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,EACpC,aAAa,EAAE,uBAAuB,GAAG,SAAS,GACjD,+BAA+B,CAkEjC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ArgumentValueTypeName, } from "
|
|
1
|
+
import { ArgumentValueTypeName, } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import getLogger from "../../util/logger.js";
|
|
3
3
|
import argumentValueMerge from "./argumentValueMerge.js";
|
|
4
|
-
import { MAXIMUM_COMPLEX_OPTION_NESTING_DEPTH } from "
|
|
4
|
+
import { MAXIMUM_COMPLEX_OPTION_NESTING_DEPTH } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
import { isComplexOption } from "../argument/ArgumentTypeGuards.js";
|
|
6
|
-
import { InvalidArgumentReason } from "
|
|
7
|
-
import { MAXIMUM_ARGUMENT_ARRAY_SIZE } from "
|
|
6
|
+
import { InvalidArgumentReason, } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
|
+
import { MAXIMUM_ARGUMENT_ARRAY_SIZE } from "@flowscripter/dynamic-cli-framework-api";
|
|
8
8
|
const logger = getLogger("subCommandValuePopulation");
|
|
9
9
|
/**
|
|
10
10
|
* Parse states for parsing loop logic
|