Documentation
¶
Overview ¶
Package ctxdetect works out what the user is looking at: a specific project, a GitLab group, or nothing in particular.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRemote ¶
ParseRemote turns a git remote URL into its host, namespace and project. It handles https, ssh:// and scp-style (git@host:path) forms. ok is false for anything that is not a recognisable remote, such as a local path.
Types ¶
type Result ¶
Result is the outcome of detection.
Click to show internal directories.
Click to hide internal directories.