@cli.command()
@click.option('--username', prompt=True, help="The developer's shown username.")
@click.option('--email', prompt='E-Mail', help="The developer's email address")
@click.password_option(help='The login password.')
@pass_repo
def setuser(repo, username, email, password):
 repo.set_config('username', username)
 repo.set_config('email', email)
 repo.set_config('password', ('*' * len(password)))
 click.echo('Changed credentials.')

@ cli . command ( ) @ click . option ( '--username' , prompt = True , help = "The developer's shown username." ) @ click . option ( '--email' , prompt = 'E-Mail' , help = "The developer's email address" ) @ click . password_option ( help = 'The login password.' ) @ pass_repo def setuser ( repo , username , email , password ) : repo . set_config ( 'username' , username ) repo . set_config ( 'email' , email ) repo . set_config ( 'password' , ( '*' * len ( password ) ) ) click . echo ( 'Changed credentials.' )
sets the user credentials .