From fd658f75458e8c1b66d6c1f863053dfdd7d97fcc Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 27 Nov 2026 15:12:10 +0000 Subject: [PATCH] Actually document this properly Signed-off-by: fbt --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 735e900..7af5e43 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,15 @@ Actions (or service-provided functions): no-op. Override it in a service to wait on something real (e.g. a port listening or a marker file). +Arguments after the action are passed into the service script when it's sourced and +thus can be used as positional arguments on the inside: + +``` +#!/usr/bin/env ssm + +service_command = /path/to/executable --flag "$1" --flag1 "$2" +``` + Global flags: * `-L`, `--list-services` — list known services and their status.