fish: validate clone inputs
This commit is contained in:
parent
d61aa93329
commit
6cc1560a07
@ -1,4 +1,9 @@
|
|||||||
function clone --argument-names giturl
|
function clone --argument-names giturl
|
||||||
|
if test (count $argv) -gt 1
|
||||||
|
echo "Expected a Git URL but got "(count $argv)" arguments: '$argv'"
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
|
||||||
# These regular expressions are far from comprehensive, but they work for me.
|
# These regular expressions are far from comprehensive, but they work for me.
|
||||||
#
|
#
|
||||||
# Examples:
|
# Examples:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user