From 3d620100f8920ffaaf4d423b1272977a83403352 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Thu, 18 Nov 2021 17:34:08 +1100 Subject: [PATCH] Improved load doc --- pkg/yqlib/doc/headers/load.md | 1 + pkg/yqlib/doc/load.md | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/yqlib/doc/headers/load.md b/pkg/yqlib/doc/headers/load.md index 86264ef4..2e6fc46c 100644 --- a/pkg/yqlib/doc/headers/load.md +++ b/pkg/yqlib/doc/headers/load.md @@ -4,6 +4,7 @@ The `load`/`strload` operator allows you to load in content from another file re Note that you can use string operators like `+` and `sub` to modify the value in the yaml file to a path that exists in your system. +Use `strload` to load text based content as a string block, and `load` to interpret the file as yaml. Lets say there is a file `../../examples/thing.yml`: diff --git a/pkg/yqlib/doc/load.md b/pkg/yqlib/doc/load.md index de225df6..aa43f486 100644 --- a/pkg/yqlib/doc/load.md +++ b/pkg/yqlib/doc/load.md @@ -4,6 +4,7 @@ The `load`/`strload` operator allows you to load in content from another file re Note that you can use string operators like `+` and `sub` to modify the value in the yaml file to a path that exists in your system. +Use `strload` to load text based content as a string block, and `load` to interpret the file as yaml. Lets say there is a file `../../examples/thing.yml`: