Ejemplo n.º 1
0
    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()
Ejemplo n.º 2
0
 def _handle_response_success(self):
     """Remove the client token."""
     delete_client_token()
     print(_(messages.LOGOUT_SUCCESS))
Ejemplo n.º 3
0
 def _do_command(self):
     """Remove the client token."""
     delete_client_token()
     print(_(messages.LOGOUT_SUCCESS))