mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-17 09:26:08 +00:00
20ed43983b
Having a clear namespace `omf.` improves the readability of the code as we clarify what is the function name and what is the namespace.
5 lines
166 B
Fish
5 lines
166 B
Fish
function omf.util_fork_repo -a user repo
|
|
curl -u "$user" --fail --silent https://api.github.com/repos/$repo/forks \
|
|
-d "{\"user\":\"$user\"}" >/dev/null ^&1
|
|
end
|