Calabonga.Commandex.Shell.Develop.Template
4.0.1
dotnet new install Calabonga.Commandex.Shell.Develop.Template::4.0.1
Calabonga.Commandex.Shell.Develop
Description
This is a nuget-package Calabonga.Commandex.Shell.Develop.Template (tools) that install to your Visual Studio a new type of the project. New type project can create a Developer version of the Command Executer (Calabonga.Commandex). Witch is created to runs commands of any type for any purposes. For example, to execute a stored procedure or just to copy some files to some destination. And so on...
What is Calabonga.Commandex
The Calabonga.Commandex - This is an application on WPF-platform built with CommunityToolkit.MVVM for modules (plugins) using: launch and execute.
What is the Calabonga.Commandex can:
- Find a modules
.dll(plugins) in the folder you set up. - Launch or execute modules
.dll(plughis) from GUI. - Get the results of the module's (plugis) work after they completed.
It's a complex solution with a few repositories:
- Calabonga.Commandex.Shell → Command Executer or Command Launcher. To run commands of any type for any purpose. For example, to execute a stored procedure or just to copy some files to some destination.
- Calabonga.Commandex.Commands → Commands for Calabonga.Commandex.Shell that can execute them from unified shell.
- Calabonga.Commandex.Shell.Develop.Template → (
Tool Template) This is a Developer version of the Command Executer Shell (Calabonga.Commandex). Which is created to runs commands of any type for any purposes. For example, to execute a stored procedure or just to co… - Calabonga.Commandex.Engine → Engine and contracts library for Calabonga.Commandex. Contracts are using for developing a modules for Commandex Shell.
- Calabonga.Commandex.Engine.Processors → Results Processors for Calabonga.Commandex.Shell commands execution results. This is an extended version of the just show string in the notification dialog.
- Calabonga.CommandexCommand.Template → (
Tool Template) This is a template of the project to create a Command for Commandex. Just install this nuget as a template for Visual Studio (Rider or dotnet CLI) and then you can create a DialogCommand faster.
How to install template
Nothing is simpler then install this template. Just execute command in powershell:
dotnet new install Calabonga.Commandex.Shell.Develop.Template
How to use
This application can only test your Command for Commandex, but almost in a real conditions. How? Please do a few simple steps:
Please implement a
ICommandexCommandinterface in WPF Class Library project and add reference toCalabonga.Commandex.Shell.Develop.Register your
ICommandexCommandimplementation in theDependencyContainer.cs.internal static IServiceProvider ConfigureServices() { var services = new ServiceCollection(); services.AddLogging(options => { options.AddSerilog(dispose: true); options.AddDebug(); }); services.AddSingleton<DefaultDialogView>(); services.AddSingleton<MainWindow>(); services.AddSingleton<ViewModels.MainWindowsViewModel>(); services.AddSingleton<IDialogService, DialogService>(); services.AddSingleton<IAppSettings>(_ => App.Current.Settings); services.AddSingleton<ISettingsReaderConfiguration, DefaultSettingsReaderConfiguration>(); // dialogs and wizard services.AddTransient<IWizardView, Wizard>(); services.AddTransient<IDialogService, DialogService>(); services.AddTransient(typeof(IWizardManager<>), typeof(WizardManager<>)); // -------------------------------------------------- // 1. Attach command definition from your project where Commandex.Command implemented. // 2. Then uncomment line below and add your command type. // services.AddDefinitions(typeof(WelcomeAppDefinition)); // <-- uncomment line and register your command here // -------------------------------------------------- return services.BuildServiceProvider(); }Inject your command implementation into
MainWindowsViewModelasICommandexCommand.public partial class MainWindowsViewModel : ViewModelBase { private readonly IDialogService _dialogService; public MainWindowsViewModel(IDialogService dialogService, IAppSettings settings) { Title = $"Commandex Shell Emulator for Easy developing ({settings.CommandsPath})"; Version = "1.0.0-rc.7"; _dialogService = dialogService; } [ObservableProperty] private string _version; /// <summary> /// Executes MVVM button action /// </summary> [RelayCommand] private Task ExecuteAsync() { _dialogService.ShowNotification("You do not attach your ICommandexCommand yet. " + "Please add your component definition in the DependencyContainer.cs file."); return Task.CompletedTask; } }Use your injected instance in
ExecuteAsync()method to execute command as shown above.If you everything do correctly, than after button click on the form your command will come executed.
Screenshot
v2.8.1
<img width="1183" height="774" alt="image" src="https://github.com/user-attachments/assets/c77116d5-198e-4438-8ab9-5b89564a61e7" />
v1.0.0
Ingredients
WPF, MVVM, CommunityToolkit, AppDefinitions, etc.
Видео (Video)
В основном репозитории Calabonga.Commandex.Shell есть несколько видео с инструкциями и разъяснениями, как использовать Commandex. А также видео о том, какие типы команд существуют и как для Commandex создавать команды разных типов.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.1 | 191 | 12/5/2025 |
| 4.0.0 | 186 | 12/5/2025 |
| 3.0.1 | 398 | 7/26/2025 |
| 3.0.0 | 249 | 7/18/2025 |
| 2.8.1 | 200 | 7/12/2025 |
| 2.6.0 | 205 | 7/5/2025 |
| 2.5.0 | 230 | 6/29/2025 |
| 2.3.2 | 205 | 6/28/2025 |
| 2.3.1 | 272 | 6/20/2025 |
| 2.1.2 | 242 | 1/11/2025 |
| 2.0.0 | 247 | 11/19/2024 |
| 2.0.0-beta.1 | 169 | 11/19/2024 |
| 1.4.2 | 248 | 11/12/2024 |
| 1.4.1 | 263 | 11/1/2024 |
| 1.3.0 | 242 | 10/12/2024 |
| 1.2.0 | 246 | 10/9/2024 |
| 1.0.0 | 246 | 9/30/2024 |
| 1.0.0-rc.17 | 183 | 9/28/2024 |
| 1.0.0-rc.16 | 215 | 9/16/2024 |
| 1.0.0-rc.15 | 195 | 9/14/2024 |
| 1.0.0-rc.13 | 192 | 9/13/2024 |
| 1.0.0-rc.11 | 182 | 9/11/2024 |
| 1.0.0-rc.10 | 199 | 9/11/2024 |
| 1.0.0-rc.9 | 191 | 9/7/2024 |
| 1.0.0-rc.7 | 192 | 9/5/2024 |
| 1.0.0-rc.6 | 189 | 9/4/2024 |
| 1.0.0-rc.5 | 211 | 8/20/2024 |
| 1.0.0-rc.4 | 207 | 8/16/2024 |
| 1.0.0-rc.3 | 206 | 8/15/2024 |
| 1.0.0-beta.15 | 198 | 8/8/2024 |
| 1.0.0-beta.12 | 181 | 8/7/2024 |
| 1.0.0-beta.11 | 163 | 8/5/2024 |
| 1.0.0-beta.9 | 161 | 8/5/2024 |
| 1.0.0-beta.8 | 173 | 8/4/2024 |
| 1.0.0-beta.7 | 166 | 8/2/2024 |
| 1.0.0-beta.6 | 161 | 8/2/2024 |
| 1.0.0-beta.5 | 168 | 8/1/2024 |
| 1.0.0-beta.2 | 178 | 8/1/2024 |
| 1.0.0-beta.1 | 188 | 8/1/2024 |
Migration to NET10