summaryrefslogtreecommitdiffstats
path: root/src/config/import.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/import.rs')
-rw-r--r--src/config/import.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config/import.rs b/src/config/import.rs
index a5b2a63..9f315f3 100644
--- a/src/config/import.rs
+++ b/src/config/import.rs
@@ -185,6 +185,12 @@ impl Importer {
}
}
+ /// Whether this is text with placeholders (`interpolated`) rather than an importer
+ /// of the whole value: its result is shown, the importers' are not.
+ pub(crate) fn is_interpolation(&self) -> bool {
+ matches!(self.source, Source::Template { .. })
+ }
+
/// The imported content: text, or JSON.
pub(crate) fn fetch(&self) -> Result<Imported> {
let text = match &self.source {