diff options
-rwxr-xr-x | bin/frest | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bin/frest b/bin/frest new file mode 100755 index 0000000..f41df68 --- /dev/null +++ b/bin/frest @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import argparse +from frest.manage.utils import logo, create_app +from frest.manage.utils import logging, logging_arg +import os + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--startapp", "-s", type=str, help="create new app") + args = parser.parse_args() + + if args.startapp: + if not os.path.exists("scheme"): + logging_arg("Create {}... ", "scheme/") + logging("OK", 3, "\n") + os.mkdir("scheme") + + create_app(args.startapp) + + +if __name__ == "__main__": + logo() + main() |