mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-09 07:10:27 +00:00
13 lines
360 B
Fish
13 lines
360 B
Fish
|
function -S git -a 1 file ctx action
|
||
|
if test "$ctx" = "ls-remote" -a "$action" = --get-url
|
||
|
switch (basename "$file")
|
||
|
case foo
|
||
|
echo https://github.com/foo/foo
|
||
|
case bar
|
||
|
echo https://github.com/bar/bar
|
||
|
case baz
|
||
|
echo https://github.com/baz/baz
|
||
|
end
|
||
|
end
|
||
|
end
|