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

Method do_remove

handler.py:456–468  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

454 return c['projects']
455
456 def do_remove(self, args):
457 c, p = self._get_project(args)
458
459 if args.get('clean'):
460 path = self._get_project_path(p)
461 if os.path.exists(path):
462 shutil.rmtree(path)
463
464 logging.info('Remove project: %s', p)
465 c['projects'].remove(p)
466 self._set_config(c)
467
468 return p
469
470 def do_build(self, args, debug=False):
471 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