cmd-toolhub
v1.0.0
Published
Interactive command-line hub to run common dev tasks (files, git, etc.)
Downloads
3
Maintainers
Readme
cmd-toolhub
An interactive command-line hub to quickly run common dev tasks (files, git, etc.).
Usage
- Install-free: run via npx
npx cmd-toolhubOn launch, you'll be prompted: "Select a category:" with options like Files, Git, and Exit.
Features
Files Operations
The Files menu provides comprehensive file and folder management capabilities:
- Create Folder: Create new directories
- Create File: Create new files (asks for directory path and filename separately)
- Delete File/Folder: Remove files or empty directories
- Rename File/Folder: Rename existing files or folders
Git Operations
The Git menu provides comprehensive version control capabilities:
- Check Status: View current Git repository status
- Add Files: Stage files and folders for commit
- Commit Changes: Commit staged changes with custom messages
- View Log: Display recent commit history in decorated graph format
- View Diff: Show working tree diff summary
- List Branches: Display all local and remote branches
- Push Changes: Push changes to remote repository with branch selection
- Pull Changes: Pull changes from remote repository with branch selection
- Create Branch: Create and switch to new branches
- Switch Branch: Switch between existing branches
- Merge Branch: Merge branches into current branch
- Delete Branch: Delete branches with force option support
- Reset Changes: Reset staged changes with interactive options
- Stash Changes: Stash operations with message support
- Clone Repository: Clone remote repositories with URL validation
- Initialize Repository: Initialize new Git repositories
- Add Remote: Add remote repositories with custom names
- Remove Remote: Remove remote repositories with validation
- Cherry-pick Commit: Apply specific commits to the current branch
- Clean Untracked Files: Remove untracked files and directories with dry-run option
Process Management
The Process Management menu provides tools for managing running processes and network ports:
- Find Process by Port: Identify which process is using a specific port
- List Port Usage: Show all processes using network ports- List Running Processes: Display all running processes (cross-platform: tasklist on Windows, ps aux on Unix)
- Kill Process by PID: Terminate processes by Process ID with confirmation prompt (cross-platform: taskkill on Windows, kill on Unix)
- List Port Usage: Show all processes using network ports
Screenshots
File Creation
Creating a new file with separate directory path and filename inputs
Folder Creation
Creating a new folder with path validation
File Deletion
Deleting files and folders with proper error handling
File Rename
Renaming files and folders with conflict detection
Folder Copy
Copying an entire folder into a destination directory
File Move
Moving a file into a destination directory with fallback support on Windows
Delete Confirmation
Confirming deletion of a folder and all its contents
Cancelling deletion when user chooses not to proceed
Git Status
Checking Git repository status showing branch information
Git Commit
Committing changes with custom commit message and validation
Git View Diff
Viewing working tree diff summary
Git View Log
Viewing recent commit history in a concise decorated graph
Git List Branches
Listing all local and remote Git branches
Git Push Changes
Pushing changes to remote repository with branch selection
Git Pull Changes
Pulling changes from remote repository with branch selection
Git Create Branch
Creating and switching to a new Git branch
Git Switch Branch
Switching between existing Git branches
Git Merge Branch
Merging branches into the current branch
Git Delete Branch
Successfully deleting a Git branch with force option
Error handling when trying to delete the currently active branch
Git Reset Changes
Resetting staged changes with interactive options
Git Stash Changes
Stash operations with error handling for empty stash list
Git Clone Repository
Cloning a remote repository with URL validation and optional directory name
Git Initialize Repository
Initializing a new Git repository in current or specified directory
Git Add Remote
Adding a remote repository with custom name and URL validation
Git Remove Remote
Removing a remote repository with validation
Git Cherry-pick Commit
Cherry-picking a specific commit to apply to the current branch
Git Clean Untracked Files
Dry run showing untracked files and directories that would be removed
Process List Running Processes
Listing all running processes with detailed information (PID, memory usage, session details)
Process Kill by PID
Killing a process by PID with confirmation prompt and success feedback
Process Find by Port
Finds which process is using a chosen port and displays its PID and status
Process List Port Usage
Lists all open ports and shows which processes are using each, along with PIDs and states
Future Plans
In version 2, we plan to add more Git commands and include their names as examples for better discoverability and usability. Some examples include:
- Rebase: Interactive rebasing and rebase operations
- Merge: Advanced merge strategies and conflict resolution
- Tag: Create, list, and manage Git tags
- Worktree: Work with multiple working trees
