blob: a6487b330b4f5c8adf8690a08fc89e7a38678c06 [file] [log] [blame]
Thomas Vachuska1dcb0482015-02-18 18:21:28 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Thomas Vachuska1dcb0482015-02-18 18:21:28 -08003 *
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.app;
17
Thomas Vachuskac40d4632015-04-09 16:55:03 -070018import com.google.common.collect.ImmutableList;
Ray Milkey9dcc0e82018-10-01 10:26:53 -070019import org.apache.karaf.shell.api.action.lifecycle.Service;
Thomas Vachuskac40d4632015-04-09 16:55:03 -070020import org.onosproject.cli.AbstractChoicesCompleter;
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080021
22import java.util.List;
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080023
24import static org.onosproject.cli.app.ApplicationCommand.*;
25
26/**
Thomas Vachuskac40d4632015-04-09 16:55:03 -070027 * Application command completer.
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080028 */
Ray Milkey9dcc0e82018-10-01 10:26:53 -070029@Service
Thomas Vachuskac40d4632015-04-09 16:55:03 -070030public class ApplicationCommandCompleter extends AbstractChoicesCompleter {
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080031 @Override
Thomas Vachuskac40d4632015-04-09 16:55:03 -070032 public List<String> choices() {
Thomas Vachuska08b4dec2017-08-31 15:20:17 -070033 return ImmutableList.of(INSTALL, UNINSTALL, ACTIVATE, DEACTIVATE, DOWNLOAD);
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080034 }
35
36}