MCPcopy Create free account
hub / github.com/GetStream/stream-cli / GetPartialUpdateParam

Function GetPartialUpdateParam

pkg/utils/param.go:38–47  ·  view source on GitHub ↗
(f *pflag.FlagSet)

Source from the content-addressed store, hash-verified

36}
37
38func GetPartialUpdateParam(f *pflag.FlagSet) (stream.PartialUpdate, error) {
39 var update stream.PartialUpdate
40 var err error
41 update.Set, err = GetJSONParam(f, "set")
42 if err != nil {
43 return update, err
44 }
45 update.Unset, err = GetStringSliceParam(f, "unset")
46 return update, err
47}

Callers 3

updatePartialCmdFunction · 0.92
updatePartialCmdFunction · 0.92
partialUpdateCmdFunction · 0.92

Calls 2

GetJSONParamFunction · 0.85
GetStringSliceParamFunction · 0.85

Tested by

no test coverage detected