func AsOutputFormat(f string) OutputFormat {
	switch strings.ToLower(f) {
	case "raw":
		return RawOutput
	default:
		return FormattedOutput
	}
}
AsOutputFormat returns the OutputFormat given an Output Format string
package querycmd
import (
	"encoding/json"
	"fmt"
	"strings"
	mgmtapi "github.com/securekey/fabric-snaps/configmanager/api"
	"github.com/securekey/fabric-snaps/configurationsnap/cmd/configcli/cliconfig"
)
type OutputFormat uint8
const (
	RawOutput OutputFormat = iota
	FormattedOutput
)
func (f OutputFormat) String() string {
	switch f {
	case FormattedOutput:
		return "formatted"
	case RawOutput:
		return "raw"
	default:
		return "unknown"
	}
}