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

Struct AssetForUpload

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected