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
- Host: GitHub
- URL: https://github.com/dantecatalfamo/repo
- Owner: dantecatalfamo
- Created: 2020-07-12T03:52:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T21:31:58.000Z (over 5 years ago)
- Last Synced: 2026-03-29T16:54:10.094Z (3 months ago)
- Topics: git, raku, repository
- Language: Raku
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
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.