Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
user_from_remote remote_uri
is the username in the github URI remote_uri
, ie:
user_from_remote_uri "git@github.com:username/repo.git"
returns Some "username"
user_from_remote_uri "https://github.com/username/repo.git"
returns Some "username"
.None
if remote_uri
isn't in the expected format.