MCPcopy Index your code
hub / github.com/dashingsoft/pyarmor-webui / do_remove

Method do_remove

handler8.py:423–435  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

421 return c['projects']
422
423 def do_remove(self, args):
424 c, p = self._get_project(args)
425
426 if args.get('clean'):
427 path = self._get_project_path(p)
428 if os.path.exists(path):
429 shutil.rmtree(path)
430
431 logging.info('Remove project: %s', p)
432 c['projects'].remove(p)
433 self._set_config(c)
434
435 return p
436
437 def do_build(self, args, debug=False):
438 c, p = self._get_project(args, silent=True)

Callers

nothing calls this directly

Calls 3

_get_projectMethod · 0.95
_get_project_pathMethod · 0.95
_set_configMethod · 0.80

Tested by

no test coverage detected