tome-scripts 0.12.2

Turn directories of shell scripts into full-blown CLIs
Documentation
#!/usr/bin/env bash
# SUMMARY: hey'
# COMPLETE
# START HELP
# this is an example of a simple script written in python.
# END HELP
#import sys

# when attempting to complete a variable,
# --complete will be passed as the first argument, followed by the rest of the arguments.
# for example, tab completing:
# $ cb file_example foo a
# will invoke:
# $ ./example/file_example --complete foo a
# (the "a" should be autocompleted.)
if [ "${1}" == "--complete" ]; then
    echo -n "file autocomplete example"
else
    echo "hello"
fi

#if len(sys.argv) > 1 and sys.argv[1] == "--complete":
#    sys.stdout.write("file autocomplete example")
#else:
#    print("hello")