diff --git a/example/__init__.py b/example/__init__.py new file mode 100644 index 0000000..0328f0c --- /dev/null +++ b/example/__init__.py @@ -0,0 +1,3 @@ +from pysheller import PySheller + +PySheller(name="test-app", description="Very example app.", commands_dir="./commands") diff --git a/example/commands/hello-user.sh b/example/commands/hello-user.sh new file mode 100755 index 0000000..3d829ba --- /dev/null +++ b/example/commands/hello-user.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# help : greet user specified in argument +# arg1 : user - user to greet + +echo "Hello, ${1}!" diff --git a/example/commands/hello.sh b/example/commands/hello.sh new file mode 100755 index 0000000..751a8b9 --- /dev/null +++ b/example/commands/hello.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +# help : print "Hello, World!" string + +echo "Hello, World!"