kinderp/beer2beer

create keep_alive cmd for the interpreter

Offen

#15 geöffnet am 23.02.2023

 (0 Kommentare) (0 Reaktionen) (3 zugewiesene Personen)Python (0 Forks)auto 404
cligood first issuepeer

Repository-Metriken

Stars
 (0 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

In shell/shell.py inside class Beer2BeerShell add two new functions:

  • do_keep_alive()
  • help_keep_alive()

Until now we don't have any implementation for keep alive in client code so first function will just do nothing but we can start to write documentation in help_keep_alive()

    def help_keep_alive(self):
        help_string = """
        DESCRIPTION:
            Send a keep alive message to the indexing server just to maintain an active status in the network.

        USAGE:
            >keep_alive
        """
        print(help_string)

Contributor Guide