This project provides a CLI tool to manage and streamline development workflows. The tool allows adding, removing, and listing aliases while supporting custom directory navigation and execution of commands for easy boot up projects.
- 🛠️ Manage aliases (
add
,remove
,list
) stored in a JSON file. - ✨ Open projects in Visual Studio Code.
- 🔥 Automatically run
npm run dev
.- 📂 Looks after
package.json
in selected folder.
- 📂 Looks after
- 🐳 Docker Support: Includes a fast method to boot any
docker compose
projects.
Note
Other commands coming as the need is there
-
🛠️ Add an
init
function to generate a new project, complete with Docker Compose setup:- 🐍 Python: Pre-configured with virtual environment and basic Docker support.
- 🟢 Node: Pre-configured with
npm init
and a Docker environment.- NextJS: as framework..
- ❓ More: Expand support based on the need (e.g., Ruby, Go, or Java).
-
Rewrite Setup after testing...
- Python: Ensure Python 3.7+ is installed.
- Node.js: Install Node.js and ensure
npm
is in your PATH. - pip: Ensure you have
pip
installed for Python package management.
Run the following command to install dependencies:
pip install click python-dotenv InquirerPy
Create a .env
file in the project root with the following structure:
# Path to the JSON file storing aliases
ALIAS_PATH=<full/path/alias.json>
# Path to the npm executable
NODE_PATH=</full/path/nodejs/npm.cmd>
# Path to the Visual Studio Code executable
VSCODE_PATH=</full/path/Code.exe>
# Base path for project directories
BASE_PATH=</full/path>
- Windows: Update paths for
NODE_PATH
andVSCODE_PATH
as per your installation. - Mac/Linux: Use
/usr/local/bin/npm
forNODE_PATH
and/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
forVSCODE_PATH
.
- Open your PowerShell profile:
notepad $PROFILE
- Add the following line:
function dev { python path\\to\\your\\src\\main.py @args }
- Save the file and reload the profile:
. $PROFILE
- Open your shell configuration file (
.bashrc
,.zshrc
, or.bash_profile
):nano ~/.bashrc # Or ~/.zshrc for Zsh users
- Add the following line:
alias dev="python /path/to/your/src/main.py"
- Save the file and reload the shell:
source ~/.bashrc # Or source ~/.zshrc
dev alias add <alias_name> <alias_for>
Example:
dev alias add myproject "MyProject\\subFolder"
dev alias remove <alias_name>
Example:
dev alias remove myproject
dev alias list
To navigate to a folder and run npm run dev
:
dev run <folder_name>
- Ensure your
.env
file is configured correctly to avoid path-related issues. - Use the appropriate shell setup instructions for your OS to enable the
dev
command globally.