(get)
| 93 | |
| 94 | @staticmethod |
| 95 | def remove_environment(get): |
| 96 | try: |
| 97 | path_data = get.path_data.strip() |
| 98 | except: |
| 99 | return json_response(False, '参数错误') |
| 100 | if not path_data: |
| 101 | return json_response(False, '参数错误') |
| 102 | em = EnvironmentManager() |
| 103 | if "," in path_data: |
| 104 | path_list = path_data.split(",") |
| 105 | res = em.multi_remove_env(*path_list) |
| 106 | else: |
| 107 | res = em.multi_remove_env(path_data) |
| 108 | return json_response(True, data=res) |
| 109 | |
| 110 | @staticmethod |
| 111 | def set_environment_default(get): |
nothing calls this directly
no test coverage detected