summaryrefslogtreecommitdiff
path: root/examples/cli
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-02 08:34:26 +0200
committerPaul Buetow <paul@buetow.org>2026-03-02 08:34:26 +0200
commit5b8ce0b75271af6b4799800178ab3039d97c47b7 (patch)
tree8713a342f84ab8a432f781573dd1a6e7178cd51d /examples/cli
parent3f833b7f82bde48ceb20f4b90407afc928ebe7b3 (diff)
add Justfiles for all examples
Each example directory gets a Justfile with run/dry/debug recipes. The rake and gem examples also include a setup recipe for bundle install. The cli example adds a hosts recipe for the --hosts flag. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'examples/cli')
-rw-r--r--examples/cli/Justfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/cli/Justfile b/examples/cli/Justfile
new file mode 100644
index 0000000..4c81601
--- /dev/null
+++ b/examples/cli/Justfile
@@ -0,0 +1,17 @@
+rcm := "../../bin/rcm"
+
+# Apply configuration
+run:
+ {{rcm}} config.rb
+
+# Dry run — show what would change without making changes
+dry:
+ {{rcm}} config.rb --dry
+
+# Verbose output
+debug:
+ {{rcm}} config.rb --debug
+
+# Limit execution to specific hosts (comma-separated, e.g. just hosts earth,mars)
+hosts target:
+ {{rcm}} config.rb --hosts {{target}}