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

Method Count

internal/attachments/flags.go:44–46  ·  view source on GitHub ↗

Count returns the number of supplied attachment values before validation. Absent flags count as zero; empty paths and values over the limit still count.

()

Source from the content-addressed store, hash-verified

42// Count returns the number of supplied attachment values before validation.
43// Absent flags count as zero; empty paths and values over the limit still count.
44func (f *Flag) Count() int {
45 return len(f.values)
46}
47
48// UserAssets validates the files named by the attachment flag, keeping them in
49// the order they were written. It returns nothing when the flag was not passed.

Callers 10

NewCmdCreateFunction · 0.45
NewCmdEditFunction · 0.45
publishRunFunction · 0.45
formatReactionGroupFunction · 0.45
CommentablePreRunFunction · 0.45
NewCmdCreateFunction · 0.45
NewCmdEditFunction · 0.45
TestAttachmentTelemetryFunction · 0.45
IsSkillPathFunction · 0.45

Calls

no outgoing calls