aboutsummaryrefslogtreecommitdiff
path: root/libs/tool
diff options
context:
space:
mode:
Diffstat (limited to 'libs/tool')
-rwxr-xr-xlibs/tool19
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/tool b/libs/tool
index 03d2d508..8fa154ef 100755
--- a/libs/tool
+++ b/libs/tool
@@ -200,6 +200,25 @@ tool_action_arguments_recursive() {
fi
}
+tool_arguments_targets() {
+ local tool="$1"
+ shift
+
+ local tool_path="$(tool_path "${tool}")"
+ local targets_path="${tool_path}/${CONFIGS}"
+ local argument
+
+ for argument in "$@"; do
+ targets_path="${targets_path}/${argument}"
+ done
+
+ targets_path="${targets_path}/${TARGETS}"
+
+ if [[ -f "${targets_path}" ]]; then
+ cat "${targets_path}"
+ fi
+}
+
tool_path() {
local tool=$1