From 8bd3e70d923fc2001d7f8aa5027e7abbcef58ee8 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 5 Mar 2021 14:16:19 -0700 Subject: rework FILE:HAS-CONTENT and add FILE:HAS-CONTENT-LINES Signed-off-by: Sean Whitton --- doc/introduction.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc/introduction.rst') diff --git a/doc/introduction.rst b/doc/introduction.rst index e62f6b6..7450355 100644 --- a/doc/introduction.rst +++ b/doc/introduction.rst @@ -40,10 +40,16 @@ Try it out / quick start (try-register-data-source :pgp :location #P"/path/to/com.example.consfig.gpg") + (defparameter my-substitution "substititions") + (defhost athena.example.com (:deploy (:ssh (:sudo :as "spwhitton@athena.example.com") :debian-sbcl)) "Web and file server." - (file:has-content "/etc/foo" '("these" "are" "my" "lines")) + (file:has-content "/etc/foo" + #?{Here is my file content. + You can use ${my-substitution} thanks to CL-INTERPOL. + And it's multiline.}) + (file:has-content-lines "/etc/bar" '("these" "are" "my" "lines")) (file:contains-lines "/etc/some.conf" '("FOO=bar"))) Here, "spwhitton" is my username on athena; we have to tell Consfigurator -- cgit v1.2.3