make json a default type for set update/replace
@@ -159,13 +159,11 @@ var setCmd = &cobra.Command{
}
} else {
var vType string
- if inlineUpdates {
if len(updateTypes) > i {
vType = updateTypes[i]
} else {
vType = "json"
}
- }
switch vType {
case "json":
buff := new(bytes.Buffer)
@@ -263,13 +261,11 @@ var setCmd = &cobra.Command{
}
} else {
var vType string
- if inlineReplaces {
if len(replaceTypes) > i {
vType = replaceTypes[i]
} else {
vType = "json"
}
- }
switch vType {
case "json":
buff := new(bytes.Buffer)
