ui/client/features/clone/domain/CloneUrl
Pure (DOMAIN-001): how an address typed into the clone form is read — the folder name it will get and a plain hint when it does not look right.
Cockpit client (features), next. Source: ui/client/features/clone/domain/CloneUrl.ts.
Functions#
suggestFolderName()#
suggestFolderName(
url):string
Defined in: ui/client/features/clone/domain/CloneUrl.ts:5
The folder name a URL will get (https://github.com/o/my-repo(.git) -> my-repo), or '' when it has none yet.
Parameters#
url
string
Returns#
string
urlProblem()#
urlProblem(
url):string|null
Defined in: ui/client/features/clone/domain/CloneUrl.ts:11
A short, plain hint about what is wrong with a URL as typed, or null when it looks fine.
Parameters#
url
string
Returns#
string | null