From e79fa21140a6e4cf6e333d5f4bb71e47d1605603 Mon Sep 17 00:00:00 2001 From: Stephane Thiell Date: Mon, 13 Jul 2026 08:04:49 -0700 Subject: [PATCH] TRIAL: doc tweaks --- doc/man/man1/clush.1 | 3 +++ doc/sphinx/guide/nodesets.rst | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/doc/man/man1/clush.1 b/doc/man/man1/clush.1 index d5836c5..f65be4b 100644 --- a/doc/man/man1/clush.1 +++ b/doc/man/man1/clush.1 @@ -124,6 +124,9 @@ execute COMMAND on the local system .TP .B clush> = toggle the output format (gathered or standard mode) +.TP +.B clush> * +broadcast the next command to every configured node .UNINDENT .UNINDENT .sp diff --git a/doc/sphinx/guide/nodesets.rst b/doc/sphinx/guide/nodesets.rst index 983a00b..e20e772 100644 --- a/doc/sphinx/guide/nodesets.rst +++ b/doc/sphinx/guide/nodesets.rst @@ -54,6 +54,13 @@ a basic usage of the :class:`.NodeSet` class:: >>> print(NodeSet.fromlist(["clu-1-[1-4]", "clu-2-[1-4]"])) clu-[1-2]-[1-4] +You can also iterate over the nodes one at a time:: + + >>> nodeset = NodeSet("node[1-3]") + >>> it = iter(nodeset) + >>> print it.next() + node1 + All corresponding Python sets operations are available, for example:: >>> from ClusterShell.NodeSet import NodeSet