oh-my-fish/pkg/omf/util/omf_util_fork_repo.fish

4 lines
165 B
Fish
Raw Normal View History

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