#NEWLINE# @ cli . command ( ) #NEWLINE# @ click . option ( '--username' , prompt = True , help = "The developer's shown username." ) #NEWLINE# @ click . option ( '--email' , prompt = 'E-Mail' , help = "The developer's email address" ) #NEWLINE# @ click . password_option ( help = 'The login password.' ) #NEWLINE# @ pass_repo #NEWLINE# def setuser( repo , username , email , password ) : #NEWLINE# #INDENT# 'Sets the user credentials.\n\n    This will override the current user config.\n    ' #NEWLINE# repo . set_config ( 'username' , username ) #NEWLINE# repo . set_config ( 'email' , email ) #NEWLINE# repo . set_config ( 'password' , ( '*' * len ( password ) ) ) #NEWLINE# click . echo ( 'Changed credentials.' )