mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
90 lines
4.5 KiB
XML
90 lines
4.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templateSet group="Shell Script">
|
|
<template name="array create" value="$ARRAY$=($ITEMS$) "
|
|
resource-bundle="messages.ShBundle" key="sh.livetemplate.description.array.create"
|
|
toShortenFQNames="false">
|
|
<variable name="ARRAY" expression="" defaultValue=""myArray"" alwaysStopAt="true"/>
|
|
<variable name="ITEMS" expression="" defaultValue=""item1 item2 item3"" alwaysStopAt="true"/>
|
|
<context>
|
|
<option name="SHELL_SCRIPT" value="true"/>
|
|
<option name="OTHER" value="false"/>
|
|
</context>
|
|
</template>
|
|
<template name="array all" value="${$ARRAY$[@]} "
|
|
resource-bundle="messages.ShBundle" key="sh.livetemplate.description.array.all"
|
|
toShortenFQNames="false">
|
|
<variable name="ARRAY" expression="" defaultValue=""myArray"" alwaysStopAt="true"/>
|
|
<context>
|
|
<option name="SHELL_SCRIPT" value="true"/>
|
|
<option name="OTHER" value="false"/>
|
|
</context>
|
|
</template>
|
|
<template name="array at index" value="${$ARRAY$[$INDEX$]} "
|
|
resource-bundle="messages.ShBundle" key="sh.livetemplate.description.array.at.index"
|
|
toShortenFQNames="false">
|
|
<variable name="ARRAY" expression="" defaultValue=""myArray"" alwaysStopAt="true"/>
|
|
<variable name="INDEX" expression="" defaultValue=""index"" alwaysStopAt="true"/>
|
|
<context>
|
|
<option name="SHELL_SCRIPT" value="true"/>
|
|
<option name="OTHER" value="false"/>
|
|
</context>
|
|
</template>
|
|
<template name="array length" value="${#$ARRAY$[@]} "
|
|
resource-bundle="messages.ShBundle" key="sh.livetemplate.description.array.length"
|
|
toShortenFQNames="false">
|
|
<variable name="ARRAY" expression="" defaultValue=""myArray"" alwaysStopAt="true"/>
|
|
<context>
|
|
<option name="SHELL_SCRIPT" value="true"/>
|
|
<option name="OTHER" value="false"/>
|
|
</context>
|
|
</template>
|
|
<template name="array delete" value="unset $ARRAY$ "
|
|
resource-bundle="messages.ShBundle" key="sh.livetemplate.description.array.delete"
|
|
toShortenFQNames="false">
|
|
<variable name="ARRAY" expression="" defaultValue=""myArray"" alwaysStopAt="true"/>
|
|
<context>
|
|
<option name="SHELL_SCRIPT" value="true"/>
|
|
<option name="OTHER" value="false"/>
|
|
</context>
|
|
</template>
|
|
<template name="array delete at" value="unset $ARRAY$[$INDEX$] "
|
|
resource-bundle="messages.ShBundle" key="sh.livetemplate.description.array.delete.at"
|
|
toShortenFQNames="false">
|
|
<variable name="ARRAY" expression="" defaultValue=""myArray"" alwaysStopAt="true"/>
|
|
<variable name="INDEX" expression="" defaultValue=""index"" alwaysStopAt="true"/>
|
|
<context>
|
|
<option name="SHELL_SCRIPT" value="true"/>
|
|
<option name="OTHER" value="false"/>
|
|
</context>
|
|
</template>
|
|
<template name="array set element" value="$ARRAY$[$INDEX$]=$VALUE$ "
|
|
resource-bundle="messages.ShBundle" key="sh.livetemplate.description.array.set.element"
|
|
toShortenFQNames="false">
|
|
<variable name="ARRAY" expression="" defaultValue=""myArray"" alwaysStopAt="true"/>
|
|
<variable name="INDEX" expression="" defaultValue=""index"" alwaysStopAt="true"/>
|
|
<variable name="VALUE" expression="" defaultValue=""value"" alwaysStopAt="true"/>
|
|
<context>
|
|
<option name="SHELL_SCRIPT" value="true"/>
|
|
<option name="OTHER" value="false"/>
|
|
</context>
|
|
</template>
|
|
<template name="array add" value="$ARRAY$+=($ITEM$) "
|
|
resource-bundle="messages.ShBundle" key="sh.livetemplate.description.array.add"
|
|
toShortenFQNames="false">
|
|
<variable name="ARRAY" expression="" defaultValue=""myArray"" alwaysStopAt="true"/>
|
|
<variable name="ITEM" expression="" defaultValue=""item"" alwaysStopAt="true"/>
|
|
<context>
|
|
<option name="SHELL_SCRIPT" value="true"/>
|
|
<option name="OTHER" value="false"/>
|
|
</context>
|
|
</template>
|
|
<template name="array iteration" value="for item in ${$ARRAY$[@]}; do echo "$item"$END$ done "
|
|
resource-bundle="messages.ShBundle" key="sh.livetemplate.description.array.iteration"
|
|
toReformat="true" toShortenFQNames="false">
|
|
<variable name="ARRAY" expression="" defaultValue=""myArray"" alwaysStopAt="true"/>
|
|
<context>
|
|
<option name="SHELL_SCRIPT" value="true"/>
|
|
<option name="OTHER" value="false"/>
|
|
</context>
|
|
</template>
|
|
</templateSet> |