Line

ui/client/features/clone/domain/CloneInput

Pure (DOMAIN-001): read whatever a person pastes into the one "repository" field.

Cockpit client (features), v0.9. Source: ui/client/features/clone/domain/CloneInput.ts.

Type Aliases#

CloneInput#

CloneInput = { branch: string | null; host: string; note: string | null; ok: true; owner: string; repo: string; slug: string; source: CloneInputSource; url: string; } | { ok: false; problem: string; }

Defined in: ui/client/features/clone/domain/CloneInput.ts:8


CloneInputSource#

CloneInputSource = "shorthand" | "address" | "browser" | "ssh" | "command"

Defined in: ui/client/features/clone/domain/CloneInput.ts:6

Functions#

describeSource()#

describeSource(s): string

Defined in: ui/client/features/clone/domain/CloneInput.ts:148

Plain words for how the pasted text was read, shown under the field.

Parameters#

s

CloneInputSource

Returns#

string


normalizeCloneInput()#

normalizeCloneInput(raw): CloneInput

Defined in: ui/client/features/clone/domain/CloneInput.ts:61

Read one pasted string. Never throws.

Parameters#

raw

string

Returns#

CloneInput