An open API service indexing awesome lists of open source software.

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

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
```