2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.netconf.cli.commands;
10 import com.google.common.base.Optional;
11 import org.opendaylight.netconf.cli.commands.input.Input;
12 import org.opendaylight.netconf.cli.commands.input.InputDefinition;
13 import org.opendaylight.netconf.cli.commands.output.Output;
14 import org.opendaylight.netconf.cli.commands.output.OutputDefinition;
15 import org.opendaylight.netconf.cli.io.ConsoleContext;
16 import org.opendaylight.yangtools.yang.common.QName;
19 * Local command e.g. help or remote rpc e.g. get-config must conform to this interface
21 public interface Command {
23 Output invoke(Input inputArgs) throws CommandInvocationException;
25 InputDefinition getInputDefinition();
27 OutputDefinition getOutputDefinition();
31 Optional<String> getCommandDescription();
33 ConsoleContext getConsoleContext();