MCPcopy
hub / github.com/cli/cli / FromFullName

Function FromFullName

internal/ghrepo/repo.go:46–48  ·  view source on GitHub ↗

FromFullName extracts the GitHub repository information from the following formats: "OWNER/REPO", "HOST/OWNER/REPO", and a full URL.

(nwo string)

Source from the content-addressed store, hash-verified

44// FromFullName extracts the GitHub repository information from the following
45// formats: "OWNER/REPO", "HOST/OWNER/REPO", and a full URL.
46func FromFullName(nwo string) (Interface, error) {
47 return FromFullNameWithHost(nwo, defaultHost())
48}
49
50// FromFullNameWithHost is like FromFullName that defaults to a specific host for values that don't
51// explicitly include a hostname.

Callers 15

ResolveRemotesToReposFunction · 0.92
BaseRepoMethod · 0.92
OverrideBaseRepoFuncFunction · 0.92
TestGetCachesFunction · 0.92
Test_viewRunFunction · 0.92
Test_listRunFunction · 0.92
Test_checkRunFunction · 0.92
Test_deleteAssetRunFunction · 0.92
TestNewCmdVerify_ArgsFunction · 0.92
Test_verifyRun_SuccessFunction · 0.92

Calls 2

FromFullNameWithHostFunction · 0.85
defaultHostFunction · 0.85

Tested by 15

TestGetCachesFunction · 0.74
Test_viewRunFunction · 0.74
Test_listRunFunction · 0.74
Test_checkRunFunction · 0.74
Test_deleteAssetRunFunction · 0.74
TestNewCmdVerify_ArgsFunction · 0.74
Test_verifyRun_SuccessFunction · 0.74
Test_deleteRunFunction · 0.74
Test_viewRunFunction · 0.74