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

Struct AssetForUpload

pkg/cmd/release/shared/upload.go:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23type errNetwork struct{ error }
24
25type AssetForUpload struct {
26 Name string
27 Label string
28
29 Size int64
30 MIMEType string
31 Open func() (io.ReadCloser, error)
32
33 ExistingURL safeurl.SafeURL
34}
35
36func AssetsFromArgs(args []string) (assets []*AssetForUpload, err error) {
37 labeledArgs, unlabeledArgs := cmdutil.Partition(args, func(arg string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected