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)
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)
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)
def installBindings(args): Container.bind('LogStream').toSingle(LogStreamConsole, True, False) Prj.installBindings(findConfigPath(args.filePath))
def installBindings(configPath): Container.bind('LogStream').toSingle(LogStreamConsoleHeadingsOnly) Container.bind('LogStream').toSingle(LogStreamFile) Prj.installBindings(configPath)