@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,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
|
|
|
7
7
|
export function isGroupCommand(command: Command): command is GroupCommand {
|
|
8
8
|
return (command as GroupCommand).memberSubCommands !== undefined;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type Command from "
|
|
1
|
+
import type { Command } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import { isGroupCommand, isSubCommand } from "./CommandTypeGuards.ts";
|
|
3
|
-
import type GlobalCommand from "
|
|
4
|
-
import type Argument from "
|
|
5
|
-
import type GroupCommand from "
|
|
6
|
-
import type SubCommand from "
|
|
7
|
-
import type { ArgumentSingleValueType } from "
|
|
3
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { Argument } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import type { GroupCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
|
+
import type { ArgumentSingleValueType } from "@flowscripter/dynamic-cli-framework-api";
|
|
8
8
|
import {
|
|
9
9
|
ArgumentValueTypeName,
|
|
10
10
|
ComplexValueTypeName,
|
|
11
|
-
} from "
|
|
12
|
-
import type Option from "
|
|
13
|
-
import type ComplexOption from "
|
|
11
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
12
|
+
import type { Option } from "@flowscripter/dynamic-cli-framework-api";
|
|
13
|
+
import type { ComplexOption } from "@flowscripter/dynamic-cli-framework-api";
|
|
14
14
|
import { isComplexOption } from "../argument/ArgumentTypeGuards.ts";
|
|
15
15
|
import {
|
|
16
16
|
getInvalidArgumentString,
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
validateOptionValue,
|
|
19
19
|
} from "../values/argumentValueValidation.ts";
|
|
20
20
|
import getLogger from "../../util/logger.ts";
|
|
21
|
-
import type CLIConfig from "
|
|
21
|
+
import type { CLIConfig } from "@flowscripter/dynamic-cli-framework-api";
|
|
22
22
|
import {
|
|
23
23
|
getGlobalCommandArgumentConfigurationKey,
|
|
24
24
|
getSubCommandArgumentConfigurationKey,
|
|
25
25
|
} from "../../util/configHelper.ts";
|
|
26
|
-
import type { InvalidArgument } from "
|
|
27
|
-
import type SubCommandArgument from "
|
|
28
|
-
import type GlobalCommandArgument from "
|
|
26
|
+
import type { InvalidArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
27
|
+
import type { SubCommandArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
28
|
+
import type { GlobalCommandArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
29
29
|
|
|
30
30
|
const logger = getLogger("commandValidation");
|
|
31
31
|
|
package/src/runtime/parser.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type Command from "../api/command/Command.ts";
|
|
2
|
-
import type GroupCommand from "../api/command/GroupCommand.ts";
|
|
3
1
|
import type {
|
|
4
2
|
ArgumentValueType,
|
|
5
3
|
PopulatedArgumentSingleValueType,
|
|
6
4
|
PopulatedArgumentValues,
|
|
7
|
-
} from "
|
|
8
|
-
import type { InvalidArgument } from "
|
|
5
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
6
|
+
import type { InvalidArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
|
+
import type { ParseResult } from "@flowscripter/dynamic-cli-framework-api";
|
|
9
8
|
import type { CommandClause } from "./scanner.ts";
|
|
10
9
|
import populateGlobalCommandValue from "./values/globalCommandValuePopulation.ts";
|
|
11
10
|
import {
|
|
@@ -15,43 +14,12 @@ import {
|
|
|
15
14
|
} from "./values/argumentValueValidation.ts";
|
|
16
15
|
import getLogger from "../util/logger.ts";
|
|
17
16
|
import populateSubCommandValues from "./values/subCommandValuePopulation.ts";
|
|
18
|
-
import type GlobalCommand from "
|
|
19
|
-
import type SubCommand from "
|
|
17
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
18
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
20
19
|
|
|
21
20
|
const logger = getLogger("parser");
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
* A container holding the result of a command clause parsing operation.
|
|
25
|
-
*/
|
|
26
|
-
export interface ParseResult {
|
|
27
|
-
/**
|
|
28
|
-
* The {@link Command} to execute if the parse result is valid (i.e. {@link invalidArguments} is empty).
|
|
29
|
-
*/
|
|
30
|
-
readonly command: Command;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Optional parent {@link GroupCommand} if the parsed {@link command} was a member {@link SubCommand},
|
|
34
|
-
*/
|
|
35
|
-
readonly groupCommand?: GroupCommand;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The argument values populated from the command line args. If the parse result is valid
|
|
39
|
-
* (i.e. {@link invalidArguments} is empty), this can be used to execute the specified {@link command}.
|
|
40
|
-
* {@link PopulatedArgumentSingleValueType} is for {@link GlobalCommand} values, {@link PopulatedArgumentValues} is for
|
|
41
|
-
* {@link SubCommand} values.
|
|
42
|
-
*/
|
|
43
|
-
readonly populatedArgumentValues: PopulatedArgumentValues | PopulatedArgumentSingleValueType;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Any arguments which were invalid.
|
|
47
|
-
*/
|
|
48
|
-
readonly invalidArguments: ReadonlyArray<InvalidArgument>;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Any arguments which were unused in the parsing operation.
|
|
52
|
-
*/
|
|
53
|
-
readonly unusedArgs: ReadonlyArray<string>;
|
|
54
|
-
}
|
|
22
|
+
export type { ParseResult } from "@flowscripter/dynamic-cli-framework-api";
|
|
55
23
|
|
|
56
24
|
/**
|
|
57
25
|
* Parse the arguments for the specified {@link CommandClause} assuming it contains a {@link SubCommand}.
|
|
@@ -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 {
|
|
8
8
|
isGlobalCommand,
|
|
9
9
|
isGlobalModifierCommand,
|
|
@@ -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
|
import getLogger from "../../util/logger.ts";
|
|
4
4
|
|
|
5
5
|
const logger = getLogger("DefaultServiceProviderRegistry");
|
package/src/runtime/runner.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type Context from "
|
|
2
|
-
import type RunResult from "
|
|
3
|
-
import { RunState } from "
|
|
4
|
-
import type CommandRegistry from "
|
|
1
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { RunResult } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import { RunState } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { CommandRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
import { isGlobalCommand, isSubCommand } from "./command/CommandTypeGuards.ts";
|
|
6
6
|
import type {
|
|
7
7
|
ArgumentSingleValueType,
|
|
8
8
|
ArgumentValues,
|
|
9
9
|
PopulatedArgumentSingleValueType,
|
|
10
10
|
PopulatedArgumentValues,
|
|
11
|
-
} from "
|
|
11
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
12
12
|
import getLogger from "../util/logger.ts";
|
|
13
13
|
import {
|
|
14
14
|
printCommandExecutionError,
|
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
printUnusedArgsWarning,
|
|
19
19
|
} from "../util/runnerHelper.ts";
|
|
20
20
|
import { scanForGlobalModifierCommandClauses, scanForNonModifierCommandClause } from "./scanner.ts";
|
|
21
|
-
import type ServiceProviderRegistry from "
|
|
21
|
+
import type { ServiceProviderRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
22
22
|
import { parseGlobalCommandClause, type ParseResult, parseSubCommandClause } from "./parser.ts";
|
|
23
23
|
import type ConfigurationServiceProvider from "../service/configuration/ConfigurationServiceProvider.ts";
|
|
24
|
-
import type GlobalModifierCommand from "
|
|
25
|
-
import type GroupCommand from "
|
|
26
|
-
import type SubCommand from "
|
|
27
|
-
import type GlobalCommand from "
|
|
28
|
-
import type Command from "
|
|
29
|
-
import type ArgumentPrompterService from "
|
|
30
|
-
import { ARGUMENT_PROMPTER_SERVICE_ID } from "
|
|
24
|
+
import type { GlobalModifierCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
25
|
+
import type { GroupCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
26
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
27
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
28
|
+
import type { Command } from "@flowscripter/dynamic-cli-framework-api";
|
|
29
|
+
import type { ArgumentPrompterService } from "@flowscripter/dynamic-cli-framework-api";
|
|
30
|
+
import { ARGUMENT_PROMPTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
31
31
|
|
|
32
32
|
const logger = getLogger("runner");
|
|
33
33
|
|
package/src/runtime/scanner.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type GroupCommand from "
|
|
2
|
-
import type GlobalModifierCommand from "
|
|
1
|
+
import type { GroupCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { GlobalModifierCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
import getLogger from "../util/logger.ts";
|
|
4
|
-
import type Command from "
|
|
5
|
-
import type SubCommand from "
|
|
4
|
+
import type { Command } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
6
|
import { isGroupCommand } from "./command/CommandTypeGuards.ts";
|
|
7
7
|
|
|
8
8
|
const logger = getLogger("scanner");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
PopulatedArgumentSingleValueType,
|
|
3
3
|
PopulatedArgumentValues,
|
|
4
|
-
} from "
|
|
5
|
-
import type { InvalidArgument } from "
|
|
4
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import type { InvalidArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A base interface for a container holding the result of argument value population.
|
|
@@ -4,9 +4,9 @@ import type {
|
|
|
4
4
|
PopulatedArgumentSingleValueType,
|
|
5
5
|
PopulatedArgumentValues,
|
|
6
6
|
PopulatedArgumentValueType,
|
|
7
|
-
} from "
|
|
8
|
-
import { MAXIMUM_ARGUMENT_ARRAY_SIZE } from "
|
|
9
|
-
import { MAXIMUM_COMPLEX_OPTION_NESTING_DEPTH } from "
|
|
7
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
8
|
+
import { MAXIMUM_ARGUMENT_ARRAY_SIZE } from "@flowscripter/dynamic-cli-framework-api";
|
|
9
|
+
import { MAXIMUM_COMPLEX_OPTION_NESTING_DEPTH } from "@flowscripter/dynamic-cli-framework-api";
|
|
10
10
|
|
|
11
11
|
function doClone(
|
|
12
12
|
source:
|
|
@@ -5,20 +5,20 @@ import type {
|
|
|
5
5
|
PopulatedArgumentSingleValueType,
|
|
6
6
|
PopulatedArgumentValues,
|
|
7
7
|
PopulatedArgumentValueType,
|
|
8
|
-
} from "
|
|
8
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
9
9
|
import {
|
|
10
10
|
ArgumentValueTypeName,
|
|
11
11
|
ComplexValueTypeName,
|
|
12
|
-
} from "
|
|
13
|
-
import type Positional from "
|
|
14
|
-
import type Option from "
|
|
15
|
-
import type ComplexOption from "
|
|
12
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
13
|
+
import type { Positional } from "@flowscripter/dynamic-cli-framework-api";
|
|
14
|
+
import type { Option } from "@flowscripter/dynamic-cli-framework-api";
|
|
15
|
+
import type { ComplexOption } from "@flowscripter/dynamic-cli-framework-api";
|
|
16
16
|
import { isComplexOption } from "../argument/ArgumentTypeGuards.ts";
|
|
17
|
-
import type { InvalidArgument } from "
|
|
18
|
-
import { InvalidArgumentReason } from "
|
|
19
|
-
import type SubCommandArgument from "
|
|
20
|
-
import type Argument from "
|
|
21
|
-
import type GlobalCommand from "
|
|
17
|
+
import type { InvalidArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
18
|
+
import { InvalidArgumentReason } from "@flowscripter/dynamic-cli-framework-api";
|
|
19
|
+
import type { SubCommandArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
20
|
+
import type { Argument } from "@flowscripter/dynamic-cli-framework-api";
|
|
21
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
22
22
|
|
|
23
23
|
interface ValidationResult {
|
|
24
24
|
invalidArgument?: InvalidArgument;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { ArgumentValueTypeName } from "
|
|
4
|
-
import type { PopulatedArgumentSingleValueType } from "
|
|
3
|
+
import { ArgumentValueTypeName } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { PopulatedArgumentSingleValueType } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
import getLogger from "../../util/logger.ts";
|
|
6
|
-
import { InvalidArgumentReason } from "
|
|
6
|
+
import { InvalidArgumentReason } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
7
|
|
|
8
8
|
const logger = getLogger("globalCommandValuePopulation");
|
|
9
9
|
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import type Option from "
|
|
2
|
-
import type SubCommand from "
|
|
1
|
+
import type { Option } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
import {
|
|
4
4
|
type ArgumentSingleValueType,
|
|
5
5
|
ArgumentValueTypeName,
|
|
6
6
|
type PopulatedArgumentSingleValueType,
|
|
7
7
|
type PopulatedArgumentValues,
|
|
8
8
|
type PopulatedArgumentValueType,
|
|
9
|
-
} from "
|
|
9
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
10
10
|
import getLogger from "../../util/logger.ts";
|
|
11
11
|
import argumentValueMerge from "./argumentValueMerge.ts";
|
|
12
12
|
import type { SubCommandValuePopulationResult } from "./ValuePopulationResult.ts";
|
|
13
|
-
import type ComplexOption from "
|
|
14
|
-
import { MAXIMUM_COMPLEX_OPTION_NESTING_DEPTH } from "
|
|
13
|
+
import type { ComplexOption } from "@flowscripter/dynamic-cli-framework-api";
|
|
14
|
+
import { MAXIMUM_COMPLEX_OPTION_NESTING_DEPTH } from "@flowscripter/dynamic-cli-framework-api";
|
|
15
15
|
import { isComplexOption } from "../argument/ArgumentTypeGuards.ts";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
type InvalidArgument,
|
|
18
|
+
InvalidArgumentReason,
|
|
19
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
20
|
+
import { MAXIMUM_ARGUMENT_ARRAY_SIZE } from "@flowscripter/dynamic-cli-framework-api";
|
|
18
21
|
|
|
19
22
|
const logger = getLogger("subCommandValuePopulation");
|
|
20
23
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type Context from "
|
|
2
|
-
import type { ServiceInfo, ServiceProvider } from "
|
|
3
|
-
import type ArgumentPrompterService from "
|
|
4
|
-
import { ARGUMENT_PROMPTER_SERVICE_ID } from "
|
|
5
|
-
import type CLIConfig from "
|
|
1
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { ServiceInfo, ServiceProvider } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { ArgumentPrompterService } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import { ARGUMENT_PROMPTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import type { CLIConfig } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
6
|
|
|
7
7
|
export default class ArgumentPrompterServiceProvider implements ServiceProvider {
|
|
8
8
|
readonly serviceId: string = ARGUMENT_PROMPTER_SERVICE_ID;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type ArgumentPrompterService from "
|
|
1
|
+
import type { ArgumentPrompterService } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import type { ParseResult } from "../../runtime/parser.ts";
|
|
3
|
-
import type PrompterService from "
|
|
3
|
+
import type { PrompterService } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
4
|
import {
|
|
5
5
|
type Prompt,
|
|
6
6
|
type PromptOption,
|
|
7
7
|
PromptType,
|
|
8
|
-
} from "
|
|
9
|
-
import { InvalidArgumentReason } from "
|
|
10
|
-
import type { InvalidArgument } from "
|
|
8
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
9
|
+
import { InvalidArgumentReason } from "@flowscripter/dynamic-cli-framework-api";
|
|
10
|
+
import type { InvalidArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
11
11
|
import {
|
|
12
12
|
type ArgumentSingleValueType,
|
|
13
13
|
ArgumentValueTypeName,
|
|
14
14
|
ComplexValueTypeName,
|
|
15
15
|
type PopulatedArgumentSingleValueType,
|
|
16
16
|
type PopulatedArgumentValues,
|
|
17
|
-
} from "
|
|
18
|
-
import type Argument from "
|
|
19
|
-
import type Option from "
|
|
20
|
-
import type Positional from "
|
|
21
|
-
import type ComplexOption from "
|
|
22
|
-
import type SubCommand from "
|
|
23
|
-
import type GlobalCommand from "
|
|
17
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
18
|
+
import type { Argument } from "@flowscripter/dynamic-cli-framework-api";
|
|
19
|
+
import type { Option } from "@flowscripter/dynamic-cli-framework-api";
|
|
20
|
+
import type { Positional } from "@flowscripter/dynamic-cli-framework-api";
|
|
21
|
+
import type { ComplexOption } from "@flowscripter/dynamic-cli-framework-api";
|
|
22
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
23
|
+
import type { GlobalCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
24
24
|
import { isGlobalCommand, isSubCommand } from "../../runtime/command/CommandTypeGuards.ts";
|
|
25
25
|
|
|
26
26
|
export default class DefaultArgumentPrompterService implements ArgumentPrompterService {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ServiceInfo, ServiceProvider } from "
|
|
2
|
-
import type Context from "
|
|
3
|
-
import type AsciiBannerGeneratorService from "
|
|
4
|
-
import { ASCII_BANNER_GENERATOR_SERVICE_ID } from "
|
|
1
|
+
import type { ServiceInfo, ServiceProvider } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { AsciiBannerGeneratorService } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import { ASCII_BANNER_GENERATOR_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
import DefaultAsciiBannerGeneratorService from "./DefaultAsciiBannerGeneratorService.ts";
|
|
6
|
-
import type CLIConfig from "
|
|
6
|
+
import type { CLIConfig } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Provides an {@link AsciiBannerGeneratorService}.
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type AsciiBannerGeneratorService from "
|
|
2
|
-
import type {
|
|
3
|
-
BannerGenerateOptions,
|
|
4
|
-
ColorEffect,
|
|
5
|
-
} from "../../api/service/core/AsciiBannerGeneratorService.ts";
|
|
1
|
+
import type { AsciiBannerGeneratorService } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { BannerGenerateOptions, ColorEffect } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
3
|
import {
|
|
7
4
|
BACKGROUND_COLOR_END,
|
|
8
5
|
backgroundColorStart,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type Context from "
|
|
2
|
-
import type { ServiceInfo, ServiceProvider } from "
|
|
1
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { ServiceInfo, ServiceProvider } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
import NoBannerCommand from "./command/NoBannerCommand.ts";
|
|
4
|
-
import type PrinterService from "
|
|
5
|
-
import { PRINTER_SERVICE_ID } from "
|
|
4
|
+
import type { PrinterService } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import { PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
6
|
import type ConfigurationServiceProvider from "../configuration/ConfigurationServiceProvider.ts";
|
|
7
|
-
import type AsciiBannerGeneratorService from "
|
|
8
|
-
import { ASCII_BANNER_GENERATOR_SERVICE_ID } from "
|
|
9
|
-
import type CLIConfig from "
|
|
7
|
+
import type { AsciiBannerGeneratorService } from "@flowscripter/dynamic-cli-framework-api";
|
|
8
|
+
import { ASCII_BANNER_GENERATOR_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
9
|
+
import type { CLIConfig } from "@flowscripter/dynamic-cli-framework-api";
|
|
10
10
|
export const BANNER_SERVICE_ID = "@flowscripter/dynamic-cli-framework/banner-service";
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type GlobalModifierCommand from "
|
|
1
|
+
import type { GlobalModifierCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
2
|
import {
|
|
3
3
|
type ArgumentSingleValueType,
|
|
4
4
|
ArgumentValueTypeName,
|
|
5
|
-
} from "
|
|
6
|
-
import type Context from "
|
|
7
|
-
import type GlobalCommandArgument from "
|
|
5
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
6
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
|
+
import type { GlobalCommandArgument } from "@flowscripter/dynamic-cli-framework-api";
|
|
8
8
|
import type BannerServiceProvider from "../BannerServiceProvider.ts";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type AsciiBannerGeneratorService from "
|
|
2
|
-
import type { BannerGenerateOptions } from "
|
|
1
|
+
import type { AsciiBannerGeneratorService } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { BannerGenerateOptions } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
3
|
import DefaultAsciiBannerGeneratorService from "../asciiBannerGenerator/DefaultAsciiBannerGeneratorService.ts";
|
|
4
4
|
import figlet from "figlet";
|
|
5
5
|
import chiselFont from "./chisel.flf.json" with { type: "json" };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
|
-
import type { ServiceProvider } from "
|
|
3
|
-
import type { ServiceInfo } from "
|
|
4
|
-
import type CLIConfig from "
|
|
5
|
-
import type Context from "
|
|
6
|
-
import { COMPLETION_SERVICE_ID } from "
|
|
7
|
-
import { ShellType } from "
|
|
2
|
+
import type { ServiceProvider } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { ServiceInfo } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { CLIConfig } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
6
|
+
import { COMPLETION_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
7
|
+
import { ShellType } from "@flowscripter/dynamic-cli-framework-api";
|
|
8
8
|
import type DefaultCompletionService from "./DefaultCompletionService.ts";
|
|
9
|
-
import { PROMPTER_SERVICE_ID } from "
|
|
10
|
-
import { PromptType } from "
|
|
11
|
-
import type PrompterService from "
|
|
12
|
-
import { KEY_VALUE_SERVICE_ID } from "
|
|
13
|
-
import type KeyValueService from "
|
|
14
|
-
import { Icon, PRINTER_SERVICE_ID } from "
|
|
15
|
-
import type PrinterService from "
|
|
16
|
-
import type CommandRegistry from "
|
|
9
|
+
import { PROMPTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
10
|
+
import { PromptType } from "@flowscripter/dynamic-cli-framework-api";
|
|
11
|
+
import type { PrompterService } from "@flowscripter/dynamic-cli-framework-api";
|
|
12
|
+
import { KEY_VALUE_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
13
|
+
import type { KeyValueService } from "@flowscripter/dynamic-cli-framework-api";
|
|
14
|
+
import { Icon, PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
15
|
+
import type { PrinterService } from "@flowscripter/dynamic-cli-framework-api";
|
|
16
|
+
import type { CommandRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
17
17
|
import getLogger from "../../util/logger.ts";
|
|
18
18
|
import { CompletionIntegrationSubCommand } from "./command/CompletionIntegrationSubCommand.ts";
|
|
19
19
|
import { CompletionCompleteSubCommand } from "./command/CompletionCompleteSubCommand.ts";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type CompletionService from "
|
|
2
|
-
import { type CompletionItem, ShellType } from "
|
|
3
|
-
import type CommandRegistry from "
|
|
1
|
+
import type { CompletionService } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import { type CompletionItem, ShellType } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { CommandRegistry } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
4
|
import type ShellHandler from "./shell/ShellHandler.ts";
|
|
5
5
|
import BashShellHandler from "./shell/bash.ts";
|
|
6
6
|
import ZshShellHandler from "./shell/zsh.ts";
|
|
7
7
|
import FishShellHandler from "./shell/fish.ts";
|
|
8
8
|
import PowerShellShellHandler from "./shell/powershell.ts";
|
|
9
|
-
import type SubCommand from "
|
|
10
|
-
import type Option from "
|
|
9
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
10
|
+
import type { Option } from "@flowscripter/dynamic-cli-framework-api";
|
|
11
11
|
|
|
12
12
|
export default class DefaultCompletionService implements CompletionService {
|
|
13
13
|
#commandRegistry: CommandRegistry | undefined;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type SubCommand from "
|
|
2
|
-
import type Option from "
|
|
3
|
-
import type Positional from "
|
|
4
|
-
import type Context from "
|
|
1
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { Option } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { Positional } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
import {
|
|
6
6
|
type ArgumentValues,
|
|
7
7
|
ArgumentValueTypeName,
|
|
8
|
-
} from "
|
|
9
|
-
import { COMPLETION_SERVICE_ID, ShellType } from "
|
|
8
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
9
|
+
import { COMPLETION_SERVICE_ID, ShellType } from "@flowscripter/dynamic-cli-framework-api";
|
|
10
10
|
import type DefaultCompletionService from "../DefaultCompletionService.ts";
|
|
11
|
-
import { PRINTER_SERVICE_ID } from "
|
|
12
|
-
import type PrinterService from "
|
|
11
|
+
import { PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
12
|
+
import type { PrinterService } from "@flowscripter/dynamic-cli-framework-api";
|
|
13
13
|
|
|
14
14
|
export class CompletionCompleteSubCommand implements SubCommand {
|
|
15
15
|
readonly name = "complete";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type GroupCommand from "
|
|
2
|
-
import type SubCommand from "
|
|
3
|
-
import type Context from "
|
|
1
|
+
import type { GroupCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
2
|
+
import type { SubCommand } from "@flowscripter/dynamic-cli-framework-api";
|
|
3
|
+
import type { Context } from "@flowscripter/dynamic-cli-framework-api";
|
|
4
4
|
import type { CompletionIntegrationSubCommand } from "./CompletionIntegrationSubCommand.ts";
|
|
5
5
|
import type { CompletionCompleteSubCommand } from "./CompletionCompleteSubCommand.ts";
|
|
6
6
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
|
-
import type SubCommand from "
|
|
3
|
-
import type Option from "
|
|
4
|
-
import type Positional from "
|
|
5
|
-
import type Context from "
|
|
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
6
|
import {
|
|
7
7
|
type ArgumentValues,
|
|
8
8
|
ArgumentValueTypeName,
|
|
9
|
-
} from "
|
|
10
|
-
import { COMPLETION_SERVICE_ID, ShellType } from "
|
|
9
|
+
} from "@flowscripter/dynamic-cli-framework-api";
|
|
10
|
+
import { COMPLETION_SERVICE_ID, ShellType } from "@flowscripter/dynamic-cli-framework-api";
|
|
11
11
|
import type DefaultCompletionService from "../DefaultCompletionService.ts";
|
|
12
|
-
import { Icon, PRINTER_SERVICE_ID } from "
|
|
13
|
-
import type PrinterService from "
|
|
12
|
+
import { Icon, PRINTER_SERVICE_ID } from "@flowscripter/dynamic-cli-framework-api";
|
|
13
|
+
import type { PrinterService } from "@flowscripter/dynamic-cli-framework-api";
|
|
14
14
|
|
|
15
15
|
export class CompletionIntegrationSubCommand implements SubCommand {
|
|
16
16
|
readonly name = "integration";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
import { homedir } from "node:os";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
import type { CompletionItem } from "
|
|
4
|
+
import type { CompletionItem } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
import type ShellHandler from "./ShellHandler.ts";
|
|
6
6
|
import type { CompletionContext } from "./ShellHandler.ts";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
import { homedir } from "node:os";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
import type { CompletionItem } from "
|
|
4
|
+
import type { CompletionItem } from "@flowscripter/dynamic-cli-framework-api";
|
|
5
5
|
import type ShellHandler from "./ShellHandler.ts";
|
|
6
6
|
import type { CompletionContext } from "./ShellHandler.ts";
|
|
7
7
|
|