def _validate_args(self): CliCommand._validate_args(self) delete_client_token() if 'username' in self.args and self.args.username: # check for file existence on system self.username = self.args.username else: self.username = input(_(messages.LOGIN_USERNAME_PROMPT)) self.password = getpass()
def _handle_response_success(self): """Remove the client token.""" delete_client_token() print(_(messages.LOGOUT_SUCCESS))
def _do_command(self): """Remove the client token.""" delete_client_token() print(_(messages.LOGOUT_SUCCESS))