https://github.com/sogaiu/git-some-janets
Tool to retrieve Janet sample code
https://github.com/sogaiu/git-some-janets
git janet retrieval samples
Last synced: 10 months ago
JSON representation
Tool to retrieve Janet sample code
- Host: GitHub
- URL: https://github.com/sogaiu/git-some-janets
- Owner: sogaiu
- Created: 2024-06-28T04:41:53.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-17T02:50:45.000Z (over 1 year ago)
- Last Synced: 2024-12-17T03:46:55.402Z (over 1 year ago)
- Topics: git, janet, retrieval, samples
- Language: Janet
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-some-janets
Retrieve some Janet sample code.
"All your Janets are belong to us."
## Installation
First clone this repository and cd to the resulting directory:
```
git clone https://github.com/sogaiu/git-some-janets
cd git-some-janets
```
Next, choose from one of the following methods:
### jpm
`jpm install`
### bundle
`janet install`
### manual
Copy the `git-some-janets.janet` file somewhere on your `PATH` and
make sure it has appropriate executable permissions. Some might
prefer to remove the `.janet` file extension (and instructions /
usage assume that is done).
## Usage
```
Usage: git-some-janets NUMBER [STRING]
git-some-janets STRING [NUMBER]
Fetch some janet-related git repositories.
Examples:
# fetch 2 janet-related repositories
git-some-janets 2
# fetch janet-related repositories whose urls contain "bakpakin"
git-some-janets bakpakin
# fetch 3 janet-related repositories whose urls contain "chambers"
git-some-janets chambers 3
git-some-janets 3 chambers
Parameters:
NUMBER maximum number of repositories to fetch (<= 0 means all
remaining)
STRING used to match (substring) which repositories to fetch
(STRING should not represent a number according to
janet's `scan-number`)
With NUMBER as the first argument, fetch NUMBER repositories (see
above for what a non-positive NUMBER means). If STRING is specified
as a second argument, fetch up to NUMBER repositories (inclusive)
whose urls contain STRING as a substring.
With STRING as the first argument, fetch repositories whose urls
contain STRING as a substring. If NUMBER is specified as a second
argument, fetch up to NUMBER repositories (inclusive) whose urls
contain STRING as a substring (see above for what a non-positive
NUMBER means).
```
## Explanation
The `git-some-janets` script will use `git` to clone repositories from
a pre-specified list. The resulting directories will live under a
directory named `repos`.