All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aeontronix.enhancedmule.tools.cli.AbstractCommand Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha4
Show newest version
/*
 * Copyright (c) Aeontronix 2022
 */

package com.aeontronix.enhancedmule.tools.cli;

import picocli.CommandLine.ParentCommand;

public abstract class AbstractCommand {
    @ParentCommand
    private AbstractCommand parent;

    public EMTCli getCli() {
        while (parent != null) {
            if (parent instanceof EMTCli) {
                return (EMTCli) parent;
            } else {
                parent = parent.parent;
            }
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy