Add example
This commit is contained in:
parent
0f44ec638d
commit
315b2cd2af
3
example/__init__.py
Normal file
3
example/__init__.py
Normal 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
6
example/commands/hello-user.sh
Executable 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
5
example/commands/hello.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# help : print "Hello, World!" string
|
||||
|
||||
echo "Hello, World!"
|
Loading…
x
Reference in New Issue
Block a user