2 * Copyright (c) 2015 Huawei, 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
9 package org.opendaylight.nemo.tool.sandbox;
11 import asg.cliche.Shell;
12 import asg.cliche.ShellFactory;
14 import java.io.IOException;
17 * Created by hj on 12/9/15.
19 public class EasyCli {
22 public EasyCli(String prompt,String hint,Object handler){
23 shell = ShellFactory.createConsoleShell(prompt, hint, handler);
26 public void add(Object handler){
27 shell.addMainHandler(handler,"");
33 } catch (IOException e) {