Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

kuksa-client: exit is an alias for quit now #663

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion kuksa-client/kuksa_client/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from cmd2 import CompletionItem
from cmd2 import with_argparser
from cmd2 import with_category
from cmd2 import constants
from cmd2.utils import basic_complete
from urllib.parse import urlparse

Expand Down Expand Up @@ -259,8 +260,11 @@ def subscriptionIdCompleter(self, text, line, begidx, endidx):
def __init__(self, server=None, token_or_tokenfile=None,
certificate=None, keyfile=None,
cacertificate=None, tls_server_name=None):
shortcuts = constants.DEFAULT_SHORTCUTS
shortcuts.update({'exit': 'quit'})
super().__init__(
persistent_history_file=".vssclient_history", persistent_history_length=100, allow_cli_args=False,
persistent_history_file=".vssclient_history", persistent_history_length=100,
shortcuts=shortcuts, allow_cli_args=False,
)

self.prompt = "Test Client> "
Expand Down