(remotes)
| 43 | |
| 44 | |
| 45 | def _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 | |
| 60 | def _do_create(rn, ru, remotes): |