This project implements a customizable command-line interface (CLI) with extensible commands and modules.
- Customizable command prompt
- Extensible command system
- Support for nested commands and arguments
- Module system for organizing and managing commands
- Built-in networking and system commands
- Cross-platform compatibility (Windows, macOS, Linux)
main.py: Entry point of the applicationconsole.py: Implements the Console class for handling user inputcommand.py: Implements the Command class for managing and executing commandscheck.py: Defines the initial set of commandsutils.py: Contains utility functions for command processinguserUtils.py: Provides user-facing utility functionsmodule.py: Implements the module system for organizing commandscolor.py: Handles colored output (not provided in the snippets)
- Ensure you have Python installed on your system.
- Install required dependencies:
pip install colorama - Run the application:
python main.py
To add new commands, modify the entries function in check.py:
def entries(console, commands):
cmd = {
"new_command": lambda path, args: your_function(args),
# Add more commands here
}
return [cmd, {}]The project includes a module system for organizing commands. Use the Modules class in module.py to add or remove command modules.
The default.wcons file contains JSON configuration for the project:
{
"author": "Rabin",
"version": "1.0",
"filename": "check.py"
}Contributions are welcome! Please feel free to submit a Pull Request.
MIT