Added shell string encoder (@sh) #1526

This commit is contained in:
Mike Farah
2023-02-02 12:23:08 +11:00
parent d119dbc239
commit d21bb920d6
7 changed files with 75 additions and 0 deletions
+2
View File
@@ -28,6 +28,8 @@ func configureEncoder(format PrinterOutputFormat, indent int) Encoder {
return NewBase64Encoder()
case UriOutputFormat:
return NewUriEncoder()
case ShOutputFormat:
return NewShEncoder()
}
panic("invalid encoder")
}