home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1be8e74
)
Use semantically-named variables
author
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 15 Jan 2021 01:56:39 +0000
(20:56 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 15 Jan 2021 01:56:39 +0000
(20:56 -0500)
home/lib/login_functions.sh
patch
|
blob
|
blame
|
history
diff --git
a/home/lib/login_functions.sh
b/home/lib/login_functions.sh
index
15f6e3c
..
042ea60
100644
(file)
--- a/
home/lib/login_functions.sh
+++ b/
home/lib/login_functions.sh
@@
-263,7
+263,10
@@
yt_video() {
}
gh_fetch_repos() {
- curl "https://api.github.com/$1/$2/repos?page=1&per_page=10000"
+ local -r user_type="$1"
+ local -r user_name="$2"
+
+ curl "https://api.github.com/$user_type/$user_name/repos?page=1&per_page=10000"
}
gh_clone() {
This page took
0.023096 seconds
and
4
git commands to generate.