@command
@arg('--with-ui', '-u', help='Include user interface template files',
     action='store_true')
@arg('--template', '-t', help='Template to use for creating a zapp project',
     choices=['python'], default='python')
@arg('dir', help='Non-existent or empty directory',
     metavar='WORKING_DIR', nargs='?',
     default='.')
@with_logging
def new(args):
    """Create template zapp.yaml file

    Create a default ZeroVM application zapp.yaml specification in the
    target directory. If no directory is specified, zapp.yaml will be
    created in the current directory.
    """

    try:
        project_files = zpm.create_project(
            args.dir,
            with_ui=args.with_ui,
            template=args.template)
    except Exception as err:
        print(err)
    else:
        for proj_file in project_files:
            print("Created '%s'" % proj_file)
dataset/ETHPy150Open zerovm/zerovm-cli/zpmlib/commands.py/new/original