https://github.com/olillin/clode
CLI program to open git repositories quickly
https://github.com/olillin/clode
cli command-line-tool git python
Last synced: 11 months ago
JSON representation
CLI program to open git repositories quickly
- Host: GitHub
- URL: https://github.com/olillin/clode
- Owner: olillin
- License: mit
- Created: 2024-12-29T19:38:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-11T19:12:43.000Z (about 1 year ago)
- Last Synced: 2025-07-14T23:50:28.619Z (12 months ago)
- Topics: cli, command-line-tool, git, python
- Language: Python
- Homepage: https://pypi.org/project/git-clode
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clode
CLI tool to open git repositories quickly.
## Installation
```console
pip install git-clode
```
## Usage
```console
$ clode -h
usage: clode [-h] [-n | -a] [-q | -l] repository [directory]
CLI tool to open git repositories quickly
positional arguments:
repository url or name of repository to clone
directory the name of a new directory to clone into
options:
-h, --help show this help message and exit
-n, --never-open don't open after cloning
-a, --always-open open even if already cloned
-q, --search search for a repository on GitHub
-l, --lazy lazy search for a repository on GitHub
```
## Examples
### Clode with URL
```console
$ clode https://github.com/olillin/clode
Cloning https://github.com/olillin/clode
```
### Clode with owner and repository name only
```console
$ clode olillin/clode
Cloning https://github.com/olillin/clode
```
> [!NOTE]
> The default service is GitHub. This can be changed in settings.
### Clode with repository name only
```console
$ clode clode
Cloning https://github.com/olillin/clode
```
> [!NOTE]
> Requires a default user to be configured in settings
### Clode with GitHub search query
```console
$ clode -q "org:cthit in:name hubbit"
[?] Select repository to clone:
> cthit/hubbit
cthit/hubbIT-old
```
### Clode with lazy search
```console
$ clode -l "cthit/chalmers it"
[?] Select repository to clone:
> cthit/chalmers.it
cthit/digit.chalmers.it
cthit/chalmers.it-deprecated
cthit/Avtal.chalmers.it
$ clode -l cals
Cloning https://github.com/olillin/cals-cals
```