Exemple #1
0
    def run(options):
        try:
            make_mission_from_template(options.mission, options.template)
        except TemplateWasntFound as e:
            print(e)
            return
        except MissionFolderExistsAlready as e:
            print(e)
            answer = raw_input('Would you like to remove this folder? y/n').strip().lower()
            if answer == 'n':
                return
            if answer in ['', 'y']:
                make_mission_from_template(options.mission, options.template, force_remove=True)

        if options.origin:
            mission_git_init(options.mission, options.origin)

        recompile_mission(options.mission)
        if not options.without_container:
            rebuild_mission(options.mission)
        init_home_file(options.mission, settings.INTERPRETER)
        rebuild_native(options.mission)
        tools.set_value('mission', options.mission)
Exemple #2
0
 def run(options):
     mission_git_init(options.mission, options.origin)
     tools.set_value('mission', options.mission)