Skip to content

PowerCommands is a create your own CLI application starter kit!

License

Notifications You must be signed in to change notification settings

PowerCommands/PowerCommands2022

Repository files navigation

Power Commands

You could see PowerCommands as your CLI application starter kit. It is a structured framework for creating your own customized command prompt to perform tasks with the full control from your command environment. That means no time-consuming hassling with a GUI, try catch block, validate your input, you do not need to write a zilion test classes either. Just concentrate on the code, create your commands and run the Console application.

Follow progress on twitter drawing

Version 1.0.4.1

Released 2025-01-21

  • PowerCommandPrivacyAttribute to prevent sensitive data leak out to the logfile.
  • Improved dialog and toolbar service.
  • New function for deserialization of Yaml.
  • Improved ZipService.
  • Every PowerCommand implementation now has it´s own working folder.
  • Filter on dir command is now not case sensitive.
  • Nuget packages has been updated.

Version 1.0.4.0

Released 2024-12-12

  • Added a new FileCommand command to Read, Copy, Move, Delete files and show file properties.
  • FileCommand also handles to write the output for a provided existing Command to a file.
  • Added a new service RunCommandService to be used when running a Command from a command.
  • Improved the ClsCommand so that the cls really clears all the input, which is a security improvement.
  • Fixed a bug that duplicated the output to the RunResult instance.
  • Added the feature to Commands command to pickup and display diagnostics about the latest RunResult (if any) for a given command (by name).
  • Log view is now the default action instead of viewing log files
  • Improved cd and dir command, added som nice new features to them
  • Nuget packages has been updated.
pipe_write_file.mp4

Start your journey

Create a new VS Solution

Create a new Command

Commands development

Design your Command

Chain commands calls

Power Commands Design attribute

Override Design attribute in config file

Patterns to use the Toolbar with dynamic content

Command base class

Handling the Input

Dialog services

ListCommand.mp4

Using Options

Simple automated test

Output to the Console guideline

File handling

Handling files and directories with file, cd and dir commands

Automation

Run your command as job

Core framework

PowerCommandsRuntime

Configuration and documentation

Basic application configuration

Extend your configuration

Configure your environment to use encrypt/decrypt secrets

Documentation index

Console Input

Shortcut guide and listening on keyboard events

Architecture

Design principles and guidlines

Customize your project


Implementations

PainKiller Security Tools

PainKiller Security Tools combines CycloneDX and Dependency Track to let you create SBOM files from git repos and import them in to OWASP Dependency Track which gives you a nice GUI where you can analyze your repos vulnerabilities.

cdxgen

PainKiller Security Tools on Github

Links

10 design principles for delightful CLIs