metomi / rose

:rose: Rose is a toolkit for writing, editing and running application configurations.
https://metomi.github.io/rose/
GNU General Public License v3.0
55 stars 50 forks source link

rose_prune: improve docs #2801

Closed oliver-sanders closed 1 month ago

oliver-sanders commented 1 month ago

Following on from the recent training session, clarify some things in the rose_prune docs.

Notes:

To see what files rose_prune will remove with the prune{item-root} config, use this diff:

diff --git a/metomi/rose/apps/rose_prune.py b/metomi/rose/apps/rose_prune.py
index 43ef7b5a8..87c51faec 100644
--- a/metomi/rose/apps/rose_prune.py
+++ b/metomi/rose/apps/rose_prune.py
@@ -296,4 +296,5 @@ class RosePruneApp(BuiltinApp):
                         globs.append(os.path.join(head, glob_))
                 else:
                     globs.append(os.path.join(head, cycle))
+        print('#', globs)
         return globs, cycle_set