blob: f5208049eea5c9fc82e88b23136072bfb079ac17 [file] [log] [blame]
Thomas Vachuska02aeb032015-01-06 22:36:30 -08001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.cli;
17
18import org.apache.karaf.shell.commands.Command;
19
20import java.io.BufferedReader;
21import java.io.IOException;
22import java.io.InputStreamReader;
23
24/**
25 * Lists application ID information.
26 */
27@Command(scope = "onos", name = "app-install",
28 description = "Lists application ID information")
29public class ApplicationInstallCommand extends AbstractShellCommand {
30
31 @Override
32 protected void execute() {
33 // FIXME: merely an experiment for now
34 try (InputStreamReader isr = new InputStreamReader(System.in);
35 BufferedReader br = new BufferedReader(isr)) {
36 String line;
37 while ((line = br.readLine()) != null) {
38 print("%s", line.toUpperCase());
39 }
40 } catch (IOException e) {
41 e.printStackTrace();
42 }
43 }
44
45}