[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/07: doc: Document the 'description' and 'default-value' of <service-t
From: |
guix-commits |
Subject: |
02/07: doc: Document the 'description' and 'default-value' of <service-type>. |
Date: |
Fri, 28 Aug 2020 17:29:33 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit b6308409206af78356ea7d1b2c4613ca1ee4315c
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Aug 28 10:01:44 2020 +0200
doc: Document the 'description' and 'default-value' of <service-type>.
* doc/guix.texi (Service Reference): Document the 'description' and
'default-value' fields of <service-type>.
---
doc/guix.texi | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index 0b79a49..6206a93 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -29770,6 +29770,23 @@ calls it, passing it the initial value of the service
as the first
argument and the result of applying @code{compose} to the extension
values as the second argument. It must return a value that is a valid
parameter value for the service instance.
+
+@item @code{description}
+This is a string, possibly using Texinfo markup, describing in a couple
+of sentences what the service is about. This string allows users to
+find about the service through @command{guix system search}
+(@pxref{Invoking guix system}).
+
+@item @code{default-value} (default: @code{&no-default-value})
+The default value associated for instances of this service type. This
+allows users to use the @code{service} form without its second argument:
+
+@lisp
+(service @var{type})
+@end lisp
+
+The returned service in this case has the default value specified by
+@var{type}.
@end table
@xref{Service Types and Services}, for examples.
- branch master updated (1922811 -> 096f442), guix-commits, 2020/08/28
- 03/07: store: 'with-store' returns as many values as its body., guix-commits, 2020/08/28
- 01/07: system: Remove extra line from 'lightweight-desktop.tmpl'., guix-commits, 2020/08/28
- 02/07: doc: Document the 'description' and 'default-value' of <service-type>.,
guix-commits <=
- 05/07: derivations: Avoid uses of 'display' in 'write-derivation'., guix-commits, 2020/08/28
- 06/07: derivations: Avoid uses of 'write' in 'write-derivation'., guix-commits, 2020/08/28
- 04/07: gnu: chez-srfi: Fix tests., guix-commits, 2020/08/28
- 07/07: gnu: guile-ssh: Update to 0.13.1., guix-commits, 2020/08/28