// Path: modules/cli/src/main/java/de/tobifleig/lxc/plaf/cli/BackendCommand.java
// public abstract class BackendCommand implements Serializable {
// 
//     private final BackendCommandType type;
// 
//     private final List<String> data;
// 
//     public BackendCommand(BackendCommandType type) {
//         this.type = type;
//         data = new ArrayList<>();
//     }
// 
//     public void addData(String d) {
//         data.add(d);
//     }
// 
//     public BackendCommandType getType() {
//         return type;
//     }
// 
//     /**
//      * Tells the frontend if an attempt should be made to start the backend if sending the command initially fails.
//      * With this, commands like stop can avoid re-starting already stopped backends.
//      * @return true, if backend should be started
//      */
//     public boolean startBackendOnSendError() {
//         return true;
//     }
// 
//     /**
//      * Called by the frontend after the attempt to deliver the command to the backend.
//      * Some commands may want to act on the result.
//      * Default action is nop.
//      * @param deliveredToBackend true if command was successfully delivered to backend, false otherwise
//      */
//     public void onFrontendResult(boolean deliveredToBackend) {}
// }
// 
// Path: modules/cli/src/main/java/de/tobifleig/lxc/plaf/cli/BackendCommandType.java
// public enum BackendCommandType {
// 
//     START, // pseudo-command does nothing, but is used by the frontend to test whether the backend is already running
//     STOP, // stops LanXchange
//     LIST, // lists files and transfers
//     GET,  // downloads a file
//     SHARE, // offers a file
//     ABORT, // aborts a transfer
//     VERSION, // displays version info
//     NOP, // used for frontend-handled commands like STATUS
// 
// }
// 
// Path: modules/cli/src/main/java/de/tobifleig/lxc/plaf/cli/ui/CLITools.java
// public final class CLITools {
// 
//     /**
//      * This is the original System.out out.
//      * LanXchange may change System.out for logging purposes, but the cli gui must still be able to print to stdout.
//      */
//     public static final PrintStream out = new PrintStream(new FileOutputStream(FileDescriptor.out));
// }


import de.tobifleig.lxc.plaf.cli.BackendCommand;
import de.tobifleig.lxc.plaf.cli.BackendCommandType;
import de.tobifleig.lxc.plaf.cli.ui.CLITools;
/*
 * Copyright 2017 Tobias Fleig (tobifleig gmail com)
 * All rights reserved.
 *
 * Usage of this source code is governed by the GNU GENERAL PUBLIC LICENSE version 3 or (at your option) any later version.
 * For the full license text see the file COPYING or https://github.com/tfg13/LanXchange/blob/master/COPYING
 */
package de.tobifleig.lxc.plaf.cli.cmds;


/**
 * Queries if the backend is running without starting it automatically.
 */
public class StatusCommand extends BackendCommand {

    public StatusCommand() {
// Path: modules/cli/src/main/java/de/tobifleig/lxc/plaf/cli/BackendCommand.java
// public abstract class BackendCommand implements Serializable {
// 
//     private final BackendCommandType type;
// 
//     private final List<String> data;
// 
//     public BackendCommand(BackendCommandType type) {
//         this.type = type;
//         data = new ArrayList<>();
//     }
// 
//     public void addData(String d) {
//         data.add(d);
//     }
// 
//     public BackendCommandType getType() {
//         return type;
//     }
// 
//     /**
//      * Tells the frontend if an attempt should be made to start the backend if sending the command initially fails.
//      * With this, commands like stop can avoid re-starting already stopped backends.
//      * @return true, if backend should be started
//      */
//     public boolean startBackendOnSendError() {
//         return true;
//     }
// 
//     /**
//      * Called by the frontend after the attempt to deliver the command to the backend.
//      * Some commands may want to act on the result.
//      * Default action is nop.
//      * @param deliveredToBackend true if command was successfully delivered to backend, false otherwise
//      */
//     public void onFrontendResult(boolean deliveredToBackend) {}
// }
// 
// Path: modules/cli/src/main/java/de/tobifleig/lxc/plaf/cli/BackendCommandType.java
// public enum BackendCommandType {
// 
//     START, // pseudo-command does nothing, but is used by the frontend to test whether the backend is already running
//     STOP, // stops LanXchange
//     LIST, // lists files and transfers
//     GET,  // downloads a file
//     SHARE, // offers a file
//     ABORT, // aborts a transfer
//     VERSION, // displays version info
//     NOP, // used for frontend-handled commands like STATUS
// 
// }
// 
// Path: modules/cli/src/main/java/de/tobifleig/lxc/plaf/cli/ui/CLITools.java
// public final class CLITools {
// 
//     /**
//      * This is the original System.out out.
//      * LanXchange may change System.out for logging purposes, but the cli gui must still be able to print to stdout.
//      */
//     public static final PrintStream out = new PrintStream(new FileOutputStream(FileDescriptor.out));
// }


// Path: modules/cli/src/main/java/de/tobifleig/lxc/plaf/cli/cmds/StatusCommand.java
import de.tobifleig.lxc.plaf.cli.BackendCommand;
import de.tobifleig.lxc.plaf.cli.BackendCommandType;
import de.tobifleig.lxc.plaf.cli.ui.CLITools;

/*
 * Copyright 2017 Tobias Fleig (tobifleig gmail com)
 * All rights reserved.
 *
 * Usage of this source code is governed by the GNU GENERAL PUBLIC LICENSE version 3 or (at your option) any later version.
 * For the full license text see the file COPYING or https://github.com/tfg13/LanXchange/blob/master/COPYING
 */
package de.tobifleig.lxc.plaf.cli.cmds;


/**
 * Queries if the backend is running without starting it automatically.
 */
public class StatusCommand extends BackendCommand {

    public StatusCommand() {
        super(BackendCommandType.NOP);