Commit a288437
authored
Adding mini CLI script for cloning repos (#40)
* Adding mini CLI tool for cloning repos
- Not finding a similar tool and tired already of forgetting to do my `pre-commit install` step when cloning a repo, >
- It's in a repo so it can be maintained, moved around, etc.
- When I asked in Slack #general if such a tool existed, I found out it didn't and it was suggested (thanks @tumido f>
- IIUC, my patch to the Dockerfile should pull in v0.1 of this bash script, drop it where it's in the user's $PATH, and makes sure the file is executable
- Patches to this patch, and to the upstream script, are very welcome
- Also, suggestions on what I can do better in v0.2 are welcome; my bash skills are basic and rusty, happy for any help and tips
- My concept here is that we may want to have a handful of individual tools, and then be able call them by `o1 toolname OPTIONS ARGUMENT TARGET`-sort of thing, as a way to ease the life of contributors, and help keep our work net and tidy. :)
Signed-of by: Karsten Wade <kwade@redhat.com> <quaid@iquaid.org>
* Missed gluing the executable lines together
- I'm new at this Dockerfile thing, and I realized when viewing the PR online what I had missed.
- Live and learn :)
Signed-off by: Karsten Wade <kwade@redhat.com> <quaid@iquaid.org>
* Contributing o1-clone to project
- I'm contributing this small script to the project, which was my intention from the start but I wasn't sure where to make the pull request against, or where to take the idea to discuss it!
- As per the discussion in the PR[1] I am moving the script here.
- I am unclear if this is the correct way to have that script deployed into the user's $PATH and made executable?
- If the patch is accepted, I guess the answer is yes!
Signed-off by: Karsten Wade <kwade@redhat.com> <quaid@iquaid.org>
* Removing double-installation
If the new script is in the `scripts` folder, it is already being copied into `/usr/local/bin`.
* removing stray character
* Removing whitespace
ok, now it should clear pre-commit check1 parent a41c824 commit a288437
1 file changed
+37
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments