Interactive mode - adambajguz/Typin GitHub Wiki

An interactive mode is a special mode of application, which allows passing multiple commands to the application without exiting the application. To start application in interactive mode simply specify [interactive] directive or use interactive command when running the application. By default applications do no support interactive mode. This can be changed with:

    builder.UseInteractiveMode();

By default above method adds [interactive], [default], [>], [.], and [..], as well as interactive command and advanced command input, but this can be configured with optional parameters available in this method. Some other settings of interactive mode, e.g. prompt foregroud, can also be configured.

Since every empty command in interactive mode will do nothing more than printing a command prompt in a new line, a special directive [!] can be used to execute the default or scoped command.