Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (26 sloc) 0.471 kB
#!/bin/sh
# TODO: Rework this into a 1.0.0 module API
step()
{
typeset name
name="$1"
(( $# )) && shift || __sm.log.fail "Cannot take step as no step name given;"\
"step [name] <- missing name."
__sm.step.start "$name"
if __sm.command.exists before_step
then
before_step "$name" "$@"
fi
"$name" "$@"
if __sm.command.exists after_step
then
after_step "$name" "$@"
fi
}
steps()
{
for step in $@
do
step "${step}"
done
}
Jump to Line
Something went wrong with that request. Please try again.