mstorectl: replaced yaml tag to json

This commit is contained in:
2026-03-09 10:54:41 +02:00
parent 86ae312384
commit dda76dc0f1
11 changed files with 21 additions and 239 deletions
+3 -3
View File
@@ -177,9 +177,9 @@ type CommonFileParams struct {
func printResponse(res any, err error) {
type Response struct {
Error bool `json:"error" yaml:"error"`
Message string `json:"message,omitempty" yaml:"message,omitempty"`
Result any `json:"result,omitempty" yaml:"result,omitempty"`
Error bool `json:"error" json:"error"`
Message string `json:"message,omitempty" json:"message,omitempty"`
Result any `json:"result,omitempty" json:"result,omitempty"`
}
resp := Response{}
if err != nil {