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

Method Changed

internal/attachments/flags.go:39–41  ·  view source on GitHub ↗

Changed reports whether the attachment flag was passed.

()

Source from the content-addressed store, hash-verified

37
38// Changed reports whether the attachment flag was passed.
39func (f *Flag) Changed() bool {
40 return f.flag.Changed
41}
42
43// RecordTelemetry records how many attachment flags were provided.
44func (f *Flag) RecordTelemetry(command string, recorder ghtelemetry.CommandRecorder) {

Callers 15

RecordTelemetryMethod · 0.95
UserAssetsMethod · 0.95
NewCmdViewFunction · 0.80
NewCmdCommentFunction · 0.80
NewCmdCreateFunction · 0.80
NewCmdEditFunction · 0.80
NewCmdCreateFunction · 0.80
NewCmdLoginFunction · 0.80
NewCmdEditItemFunction · 0.80
NewCmdCommitsFunction · 0.80
NewCmdPrsFunction · 0.80
NewCmdIssuesFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestNewCmdCommentFunction · 0.64
TestNewCmdCreateFunction · 0.64
TestNewCmdEditFunction · 0.64
TestNewCmdCommentFunction · 0.64
TestNewCmdCreateFunction · 0.64
TestNewCmdEditFunction · 0.64
TestAddFlagFunction · 0.64