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

https://github.com/dantecatalfamo/repo

Repo management tool
https://github.com/dantecatalfamo/repo

git raku repository

Last synced: 3 months ago
JSON representation

Repo management tool

Awesome Lists containing this project

README

          

* Repo

A small tool written to help manage the my =~/src= directory.
Written in [[https://raku.org/][raku]] as an exercise.

Works on with any git hosting site with a ~example.com/user/repo~ URL
scheme, either over SSH or HTTPS.

* Usage

#+BEGIN_SRC
usage: repo []

Commands:
cd Change to a project directory under ~/src
clone Clone a repository into ~/src according to the site, user, and project
#+END_SRC

* Example
- ~repo clone https://github.com/dantecatalfamo/repo~
- clone https://github.com/dantecatalfamo/repo into =~/src/github.com/dantecatalfamo/repo=
- change to the new project directory

- ~repo cd repo~
- Compare the query =repo= to all of the paths under =~/src=
- If no matches, display error and do nothing
- If only one matches, change to the directory
- If multiple matches, display matches and let user choose

* Installation

- Clone this repo, into =~/src/github.com/dantecatalfamo/repo= for example.
- Add this to your shell startup file. For bash that's =~/.bashrc=
#+BEGIN_SRC shell
source /home/dante/src/github.com/dantecatalfamo/repo/repo.sh
#+END_SRC
- That's it.