Discover Packages
github.com/specscore/specscore-cli
pkg
gitremote
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: May 22, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package gitremote parses git remote URLs into their owner / repo / host
components. MVP supports GitHub hosts only; other hosts return ok=false.
OriginURL returns the URL of the "origin" remote for the git repository
at dir. Returns an error if dir is not a git repo or has no origin remote.
Remote is a parsed git remote URL.
Parse extracts the owner/repo/host from a git remote URL. It returns
(Remote, true) only for GitHub hosts in MVP; any other host (GitLab,
Bitbucket, self-hosted) yields (_, false) so callers can gracefully
skip rather than emit broken links.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.