about summary refs log tree commit diff stats
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/config/fetcher.go4
-rw-r--r--internal/config/importer-type.go4
2 files changed, 8 insertions, 0 deletions
diff --git a/internal/config/fetcher.go b/internal/config/fetcher.go
index a01abbd..fd95b32 100644
--- a/internal/config/fetcher.go
+++ b/internal/config/fetcher.go
@@ -47,3 +47,7 @@ func (f *Fetcher) UnmarshalText(text []byte) error {
 
 	return err
 }
+
+func (f *Fetcher) MarshalText() ([]byte, error) {
+	return []byte(f.String()), nil
+}
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
+}