Add example

This commit is contained in:
samedamci 2021-09-01 15:01:54 +02:00
parent 0f44ec638d
commit 315b2cd2af
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894
3 changed files with 14 additions and 0 deletions

3
example/__init__.py Normal file
View File

@ -0,0 +1,3 @@
from pysheller import PySheller
PySheller(name="test-app", description="Very example app.", commands_dir="./commands")

6
example/commands/hello-user.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# help : greet user specified in argument
# arg1 : user - user to greet
echo "Hello, ${1}!"

5
example/commands/hello.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# help : print "Hello, World!" string
echo "Hello, World!"