about summary refs log tree commit diff stats
path: root/internal/config/importer-type.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-20 18:46:20 +0200
committerAlan Pearce2024-05-20 18:46:20 +0200
commita90419aa46ec42588f65e6327559ce479f9c5b67 (patch)
tree449e3d50d8449bf63a48462513e59858716879a7 /internal/config/importer-type.go
parentbe3bab7fc4f8c3efc87cf7cfcc83d63177fdd7b9 (diff)
downloadsearchix-a90419aa46ec42588f65e6327559ce479f9c5b67.tar.lz
searchix-a90419aa46ec42588f65e6327559ce479f9c5b67.tar.zst
searchix-a90419aa46ec42588f65e6327559ce479f9c5b67.zip
feat(config): use enums' string representations to print defaults
Diffstat (limited to 'internal/config/importer-type.go')
-rw-r--r--internal/config/importer-type.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/config/importer-type.go b/internal/config/importer-type.go
index 0d0263c..8f64d58 100644
--- a/internal/config/importer-type.go
+++ b/internal/config/importer-type.go
@@ -42,3 +42,7 @@ func (i *ImporterType) UnmarshalText(text []byte) error {
 
 	return err
 }
+
+func (i *ImporterType) MarshalText() ([]byte, error) {
+	return []byte(i.String()), nil
+}