| Crates.io | prj-cli |
| lib.rs | prj-cli |
| version | 1.0.0 |
| created_at | 2024-11-11 19:00:29.026032+00 |
| updated_at | 2024-11-11 23:25:10.01672+00 |
| description | A CLI tool for managing projects on your local machine |
| homepage | https://github.com/hxyulin/prj |
| repository | https://github.com/hxyulin/prj |
| max_upload_size | |
| id | 1444095 |
| size | 66,379 |
prj - Project Manager CLIprj is a simple CLI tool for managing projects on your local machine. It allows you to add, list, remove, navigate to, and clone projects directly from GitHub. With built-in support for various project types (like Cargo and CMake), prj is designed to streamline your workflow.
pj shortcut for quick project navigation.Clone the repository:
git clone https://github.com/yourusername/prj
cd prj
Build and install:
cargo install --path .
Run the setup to configure the pj shortcut:
prj setup
This will add a pj function to your shell (like .bashrc or .zshrc) for easier navigation. To activate it immediately, source your shell configuration file:
source ~/.bashrc # or source ~/.zshrc
prj <COMMAND> [OPTIONS]
addManually add a project with a specified name, type, and path.
prj add --name myproject --type Cargo --path /path/to/project
Cargo, CMake, etc.)listList all added projects in a formatted table.
prj list
print-pathPrint the path of a specified project.
prj print-path --name myproject
removeRemove a project by its name or path.
prj remove --name myproject
Reorder projects by their names.
prj reorder
cloneClone a GitHub repository and automatically add it as a project.
prj clone https://github.com/author/repo --type Cargo --name customname --path /custom/path -- --branch main --depth 1
Other)git clone command, such as --branch and --depth.setupSets up the project manager and adds a pj shell function for quick project navigation. Use this once after installation.
Add a Project:
prj add --name myproject --type Cargo --path /home/user/myproject
To add a project interactively, you can use prj add without any arguments.
List Projects:
prj list
For an interactive list, you can use prj list --interactive, and multi selection can be enabled with prj list --interactive --multi.
Clone a Repository:
prj clone https://github.com/author/repo -- --branch main --depth 1
Navigate to a Project with pj:
pj myproject
This will cd into the project directory if you sourced your shell configuration after running prj setup.
An interactive project selection can be enabled by specifying no arguments:
pj
This project is licensed under the MIT License. See LICENSE for details.