1 /*******************************************************************************
2 * Copyhacked (H) 2012-2025.
3 * This program and the accompanying materials
4 * are made available under no term at all, use it like
5 * you want, but share and discuss it
6 * every time possible with every body.
7 *
8 * Contributors:
9 * ron190 at ymail dot com - initial implementation
10 ******************************************************************************/
11 package com.jsql.view.terminal.interaction;
12
13 import com.jsql.util.AnsiColorUtil;
14 import com.jsql.view.interaction.InteractionCommand;
15 import org.apache.logging.log4j.LogManager;
16 import org.apache.logging.log4j.Logger;
17
18 /**
19 * Append the result of a command in the terminal.
20 */
21 public class GetTerminalResult implements InteractionCommand {
22
23 private static final Logger LOGGER = LogManager.getRootLogger();
24
25 public GetTerminalResult(Object[] interactionParams) {
26 // nothing
27 }
28
29 @Override
30 public void execute() {
31 LOGGER.info(() -> AnsiColorUtil.addGreenColor(this.getClass().getSimpleName()));
32 }
33 }