https://github.com/euphoric-coder/pseudoshell
A lightweight Python-based terminal emulator that lets you execute shell commands and view their outputs. Ideal for learning how terminal interactions work with Python.
https://github.com/euphoric-coder/pseudoshell
Last synced: about 1 year ago
JSON representation
A lightweight Python-based terminal emulator that lets you execute shell commands and view their outputs. Ideal for learning how terminal interactions work with Python.
- Host: GitHub
- URL: https://github.com/euphoric-coder/pseudoshell
- Owner: Euphoric-Coder
- License: mit
- Created: 2024-08-28T19:44:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T19:47:09.000Z (almost 2 years ago)
- Last Synced: 2025-03-06T18:47:39.066Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PseudoShell - Your Goto Mini Terminal
This project is a mini terminal-like command line interface (CLI) built using Python. It supports a variety of common shell commands, allowing users to navigate directories, manage files, and execute basic operations directly from the terminal. This CLI project is a great way to showcase skills in Python, command parsing, and file manipulation.
## Features
- **Basic Commands**: Supports common shell commands like `ls`, `cd`, `pwd`, `mkdir`, `rmdir`, `rm`, `touch`, `cat`, `cp`, and `mv`.
- **Command Autocompletion**: Use the Tab key for autocompleting commands and paths.
- **Command History**: Navigate through command history using the up and down arrow keys.
- **Built-in Help**: Type `help` to get a list of supported commands and their usage.
- **Chained Commands**: Execute multiple commands in one line using the `;` symbol.
- **Error Handling**: Proper error messages for common issues such as missing files, incorrect paths, and invalid command usage.
## Installation
1. **Clone the repository:**
```bash
git clone https://github.com/yourusername/python-cli.git
cd python-cli