go-ceph/cephfs/admin/flags.go

19 lines
283 B
Go

// +build !luminous,!mimic
package admin
type commonRmFlags struct {
force bool
}
func (f commonRmFlags) Update(m map[string]string) map[string]interface{} {
o := make(map[string]interface{})
for k, v := range m {
o[k] = v
}
if f.force {
o["force"] = true
}
return o
}