How can I implement a REPL for an existing, non-interactive CLI utility?
To implement a REPL (Read-Eval-Print Loop) for an existing, non-interactive CLI (Command Line Interface) utility, you will need to create a new layer of interaction between the user and the utility. Here are the general steps you can follow:

1. Identify the entry point of the CLI utility. This could be a script file or a main function in a program.
2. Extract the code that performs the core functionality of the CLI utility and put it in a separate function. This will allow you to call the function repeatedly in the REPL.
3. Create a loop that repeatedly prompts the user for input and processes it. This is the Read and Eval stages of the REPL. The user's input should be passed to the function you extracted in step 2, and the output should be printed to the console.
4. Once the output has been printed, the loop should repeat, prompting the user for another input.

Here's some sample code that demonstrates these steps:
``` 
import sys

def my_cli_function(args):
    # Replace this with the code from your existing CLI utility
    return You entered: {}.format(args)

def repl():
    while True:
        user_input = input(Enter a command: )
        args = user_input.split()
        if args:
            if args[0] == quit:
                sys.exit(0)
            result = my_cli_function(args)
            print(result)

if __name__ == __main__:
    repl()
``` 

This code defines a new function, repl(), that implements the REPL. The my_cli_function() function is the core functionality of the CLI utility, which in this case simply returns a message that echoes the user's input.

When you run this code, it will display a prompt and wait for the user to enter a command. The command is split into arguments, and if the first argument is quit, the program will exit. Otherwise, the arguments are passed to my_cli_function(), and the result is printed to the console. The loop then repeats, prompting the user for another command.
Please change all the prompts to Polish.
```py
import sys

def my_cli_function(args):
    # Replace this with the code from your existing CLI utility
    return Wszedłeś: {}.format(args)

def repl():
    while True:
        user_input = input(Wpisz polecenie: )
        args = user_input.split()
        if args:
            if args[0] == wyjść:
                sys.exit(0)
            result = my_cli_function(args)
            print(result)

if __name__ == __main__:
    repl()
```