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

Method do_update

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

Source from the content-addressed store, hash-verified

434 return args
435
436 def do_update(self, args):
437 data = self._build_data(args)
438
439 c, p = self._get_project(args)
440 p.update(args)
441 self._set_config(c)
442
443 path = self._get_project_path(p)
444 project = Project()
445 project.open(path)
446 project._update(data)
447 project.save(path)
448
449 logging.info('Update project: %s', p)
450 return p
451
452 def do_list(self, args):
453 c = self._get_config()

Callers

nothing calls this directly

Calls 4

_build_dataMethod · 0.95
_get_projectMethod · 0.95
_get_project_pathMethod · 0.95
_set_configMethod · 0.80

Tested by

no test coverage detected