plugins still can't inline huh
This commit is contained in:
parent
4ee5913bd0
commit
3dd055b640
6 changed files with 22 additions and 16 deletions
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
flip() {
|
||||
LC_ALL=C LC_ALL=en_US.UTF-8 rev <"/dev/stdin"
|
||||
}
|
||||
|
||||
main() {
|
||||
case $1 in
|
||||
flip) flip;;
|
||||
esac
|
||||
}
|
||||
|
||||
main $1
|
15
examples/quickstart/plugins/plural.sh
Executable file
15
examples/quickstart/plugins/plural.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
alterName=$1
|
||||
message=$(<"/dev/stdin")
|
||||
|
||||
cat << EOF
|
||||
<div class="alter alter-${alterName}">
|
||||
<span class="alter-name">
|
||||
${alterName}@41666$>
|
||||
</span>
|
||||
<span class="message">
|
||||
${message}
|
||||
</span>
|
||||
</div>
|
||||
EOF
|
7
examples/quickstart/plugins/tools.py
Executable file
7
examples/quickstart/plugins/tools.py
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
if sys.argv[1] == "flip":
|
||||
stdin = sys.stdin.read()
|
||||
print(stdin[::-1], flush=True)
|
Loading…
Add table
Add a link
Reference in a new issue