MCPcopy Index your code
hub / github.com/cloudfoundry/cli / convertBytesFlagToNullInt

Function convertBytesFlagToNullInt

command/v7/create_org_quota_command.go:72–78  ·  view source on GitHub ↗
(flag flag.BytesWithUnlimited)

Source from the content-addressed store, hash-verified

70}
71
72func convertBytesFlagToNullInt(flag flag.BytesWithUnlimited) *types.NullInt {
73 if !flag.IsSet {
74 return nil
75 }
76
77 return &types.NullInt{IsSet: true, Value: flag.Value}
78}
79
80func convertMegabytesFlagToNullInt(flag flag.MegabytesWithUnlimited) *types.NullInt {
81 if !flag.IsSet {

Callers 4

ExecuteMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected