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

Function _do_list

gitless/cli/gl_remote.py:45–57  ·  view source on GitHub ↗
(remotes)

Source from the content-addressed store, hash-verified

43
44
45def _do_list(remotes):
46 pprint.msg('List of remotes:')
47 pprint.exp(
48 'do gl remote -c r r_url to add a new remote r mapping to r_url')
49 pprint.exp('do gl remote -d r to delete remote r')
50 pprint.blank()
51
52 if not len(remotes):
53 pprint.item('There are no remotes to list')
54 else:
55 for r in remotes:
56 pprint.item(r.name, opt_text=' (maps to {0})'.format(r.url))
57 return True
58
59
60def _do_create(rn, ru, remotes):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected