MCPcopy Create free account
hub / github.com/cli/cli / isLink

Method isLink

pkg/cmd/issue/artifact/create/create.go:79–81  ·  view source on GitHub ↗

isLink reports whether the source creates a link: a URL, or a .url file.

()

Source from the content-addressed store, hash-verified

77
78// isLink reports whether the source creates a link: a URL, or a .url file.
79func (s source) isLink() bool {
80 return s.kind == fromURL || (s.kind == fromFile && shared.IsShortcutFile(s.arg))
81}
82
83// artifactType returns the type of the source's artifact: link for a link,
84// or for a document, the type from --type when typeFlag is set. Without it, a

Callers 1

artifactTypeMethod · 0.95

Calls 1

IsShortcutFileFunction · 0.92

Tested by

no test coverage detected