Example #1
0
def installBindings():

    Container.bind('LogStream').toSingle(LogStreamFile)
    Container.bind('LogStream').toSingle(LogStreamConsole, True, False)

    demoConfig = os.path.realpath(os.path.join(ProjenyDir, 'Demo/Projeny.yaml'))
    Prj.installBindings(demoConfig)
Example #2
0
def main():
    import argparse

    parser = argparse.ArgumentParser(description='Projeny Editor API')
    parser.add_argument("configPath", help="")
    parser.add_argument("project", help="")
    parser.add_argument('platform',
                        type=str,
                        choices=[x.lower() for x in Platforms.All],
                        help='')
    parser.add_argument('requestId',
                        type=str,
                        choices=[
                            'createProject', 'installRelease', 'listReleases',
                            'listProjects', 'listPackages', 'listDependencies',
                            'addPackage', 'setPackages', 'updateLinks',
                            'updateCustomSolution', 'openCustomSolution',
                            'openUnity', 'getPathVars'
                        ],
                        help='')
    parser.add_argument("param1", nargs='?', help="")
    parser.add_argument("param2", nargs='?', help="")
    parser.add_argument("param3", nargs='?', help="")

    args = parser.parse_args(sys.argv[1:])

    installBindings(args.configPath)
    Prj.installPlugins()

    Runner().run(args.project,
                 PlatformUtil.fromPlatformFolderName(args.platform),
                 args.requestId, args.param1, args.param2, args.param3)
Example #3
0
def installBindings():

    Container.bind('LogStream').toSingle(LogStreamFile)
    Container.bind('LogStream').toSingle(LogStreamConsole, True, False)

    demoConfig = os.path.realpath(os.path.join(ProjenyDir, 'Demo/Projeny.yaml'))
    Prj.installBindings(demoConfig)
Example #4
0
def main():
    import argparse

    parser = argparse.ArgumentParser(description='Projeny Editor API')
    parser.add_argument("configPath", help="")
    parser.add_argument("project", help="")
    parser.add_argument('platform', type=str, choices=[x.lower() for x in Platforms.All], help='')
    parser.add_argument('requestId', type=str, choices=['createProject', 'installRelease', 'listReleases', 'listProjects', 'listPackages', 'updateLinks', 'updateCustomSolution', 'openCustomSolution', 'openUnity', 'getPathVars'], help='')
    parser.add_argument("param1", nargs='?', help="")
    parser.add_argument("param2", nargs='?', help="")
    parser.add_argument("param3", nargs='?', help="")

    args = parser.parse_args(sys.argv[1:])

    installBindings(args.configPath)
    Prj.installPlugins()

    Runner().run(args.project, PlatformUtil.fromPlatformFolderName(args.platform), args.requestId, args.param1, args.param2, args.param3)
Example #5
0
def installBindings(args):

    Container.bind('LogStream').toSingle(LogStreamConsole, True, False)

    Prj.installBindings(findConfigPath(args.filePath))
Example #6
0
def installBindings(configPath):
    Container.bind('LogStream').toSingle(LogStreamConsoleHeadingsOnly)
    Container.bind('LogStream').toSingle(LogStreamFile)
    Prj.installBindings(configPath)
Example #7
0
def installBindings(configPath):
    Container.bind('LogStream').toSingle(LogStreamConsoleHeadingsOnly)
    Container.bind('LogStream').toSingle(LogStreamFile)
    Prj.installBindings(configPath)