gitlab_migration/cli.py
def from_csv(csv, target_base_url, target_token):
    '''
    read in repos to action from a csv, migrate to target_base_url

    csv must contain two columns: source url in the first, and target base url in the second.
    target base url MUST be fleshed out. eg: `https://gitlab.example.com/` or `git@gitlab.example.com:`
    target_token must be an API-level private token valid on the target server
    '''
    for line in csv.readlines():
        old_url, target_group = [string.strip() for string in line.split(',')]
        click.echo(f"working on {old_url}...")
        glm.migrate_repo(old_url, target_base_url, target_group, target_token)

    read in repos to action from a csv, migrate to target_base_url

    csv must contain two columns: source url in the first, and target base url in the second.
    target base url MUST be fleshed out. eg: `https://gitlab.example.com/` or `git@gitlab.example.com:`
    target_token must be an API-level private token valid on the target server
    
read in repos to action from a csv, migrate to target_base_url
csv must contain two columns: source url in the first, and target base url in the second.
target base url MUST be fleshed out.
read in repos to action from a csv migrate to target_base_url csv must contain two columns : source url in the first and target base url in the second . target base url MUST be fleshed out .
def from_csv(csv, target_base_url, target_token):
    for line in csv.readlines():
        old_url, target_group = [string.strip() for string in line.split(',')]
        click.echo(f"working on {old_url}...")
        glm.migrate_repo(old_url, target_base_url, target_group, target_token)
def from_csv ( csv , target_base_url , target_token ) : for line in csv . readlines ( ) : old_url , target_group = [ string . strip ( ) for string in line . split ( ',' ) ] click . echo ( f"working on {old_url}..." ) glm . migrate_repo ( old_url , target_base_url , target_group , target_token )
read in repos to action from a csv, migrate to target_base_url
csv must contain two columns: source url in the first, and target base url in the second.
read in repos to action from a csv migrate to target_base_url csv must contain two columns : source url in the first and target base url in the second .
'''
    read in repos to action from a csv, migrate to target_base_url

    csv must contain two columns: source url in the first, and target base url in the second.
    target base url MUST be fleshed out. eg: `https://gitlab.example.com/` or `git@gitlab.example.com:`
    target_token must be an API-level private token valid on the target server
    '''
csv
target_base_url
target_token