MCPcopy
hub / github.com/gitless-vcs/gitless / main

Function main

gitless/cli/gl_remote.py:30–42  ·  view source on GitHub ↗
(args, repo)

Source from the content-addressed store, hash-verified

28
29
30def main(args, repo):
31 ret = True
32 remotes = repo.remotes
33 if args.remote_name:
34 if not args.remote_url:
35 raise ValueError('Missing url')
36 ret = _do_create(args.remote_name, args.remote_url, remotes)
37 elif args.delete_r:
38 ret = _do_delete(args.delete_r, remotes)
39 else:
40 ret = _do_list(remotes)
41
42 return ret
43
44
45def _do_list(remotes):

Callers

nothing calls this directly

Calls 3

_do_createFunction · 0.70
_do_deleteFunction · 0.70
_do_listFunction · 0.70

Tested by

no test coverage detected