| Crates.io | pji |
| lib.rs | pji |
| version | 0.1.6 |
| created_at | 2025-02-16 12:13:09.379165+00 |
| updated_at | 2025-05-11 06:50:47.085323+00 |
| description | A CLI for managing, finding, and opening Git repositories. |
| homepage | |
| repository | https://github.com/zhanba/pji |
| max_upload_size | |
| id | 1557649 |
| size | 97,224 |
pji is a command-line tool designed to simplify managing, finding, and opening your Git repositories. It helps you keep your projects organized and quickly access them.
cd command to your clipboard for instant navigation.pji's metadata and configuration files.cargo install pji
or use brew
brew install zhanba/tap/pji
pji [COMMAND]
Available Commands:
config: Configure the root directory (or directories) where your repositories are stored. pji will prompt for the path.add <GIT_URL>: Clones the specified Git repository into your configured root directory and registers it with pji.
pji add https://github.com/zhanba/pji.gitremove <GIT_URL>: Removes a registered Git repository from pji's tracking and deletes its directory.
pji remove https://github.com/zhanba/pji.gitlist [-l, --long]: Lists all Git repositories managed by pji.
-l or --long for a detailed table view including last opened time.find [QUERY]: Fuzzy search for a Git repository by its name or path.
cd into the repository's directory is copied to your clipboard.pji find myprojectscan: Scans all configured root directories for Git repositories and adds any new ones to pji's managed list.clean: Removes all pji metadata and configuration files from your system. Use with caution.open ...: Contains subcommands to open repository pages in the browser. See below.help: Print help message or the help of a given subcommand.pji open CommandsThe open command helps you quickly navigate to your repository's web interface (e.g., GitHub, GitLab).
pji open [SUBCOMMAND] [OPTIONS]
Subcommands & Options:
pji open [REPO_NAME_OR_URL] or pji open home [REPO_NAME_OR_URL]: Opens the homepage of the specified repository.
REPO_NAME_OR_URL is omitted, pji attempts to open the repository corresponding to the current working directory.pji open pji (if 'pji' is a known repo)pji open (when inside a managed git repository)pji open pr [NUMBER]: Opens a specific pull request page.
NUMBER is omitted, it may open the general pull requests page (behavior might depend on the hosting platform's URL structure for the repo).pji open pr 123pji open issue [NUMBER]: Opens a specific issue page.
NUMBER is omitted, it may open the general issues page.pji open issue 456Note on open context: For pr and issue subcommands, if you don't specify a repository name/URL directly and are not inside a managed repository's directory, the command might not find a repository to act upon.
pji organizes cloned repositories under the configured root path, typically like this:
$ROOT/
|- github.com/
| `- zhanba/
| `- pji/
`- gitlab.com/
`- another-user/
`- another-project/
pji maintains a configuration file (usually ~/.config/pji/config.json or platform equivalent) to store your root directories and metadata about your repositories (usually ~/.config/pji/metadata.json).
This project is licensed under the MIT License. See the LICENSE file for details.