blob: 8164b0e57d86508f31d991ad23ac869af6afe0a9 [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;
19import org.onosproject.cli.AbstractChoicesCompleter;
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080020
21import java.util.List;
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080022
23import static org.onosproject.cli.app.ApplicationCommand.*;
24
25/**
Thomas Vachuskac40d4632015-04-09 16:55:03 -070026 * Application command completer.
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080027 */
Thomas Vachuskac40d4632015-04-09 16:55:03 -070028public class ApplicationCommandCompleter extends AbstractChoicesCompleter {
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080029 @Override
Thomas Vachuskac40d4632015-04-09 16:55:03 -070030 public List<String> choices() {
Thomas Vachuska08b4dec2017-08-31 15:20:17 -070031 return ImmutableList.of(INSTALL, UNINSTALL, ACTIVATE, DEACTIVATE, DOWNLOAD);
Thomas Vachuska1dcb0482015-02-18 18:21:28 -080032 }
33
34}