blob: 71ad38927bae835a2fc704c4b3cea161b41e83e8 [file] [log] [blame]
Thomas Vachuskac40d4632015-04-09 16:55:03 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Thomas Vachuskac40d4632015-04-09 16:55:03 -07003 *
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 com.google.common.collect.ImmutableList;
Ray Milkeyd5435182018-10-11 16:18:51 -070019import org.apache.karaf.shell.api.action.lifecycle.Service;
Thomas Vachuskac40d4632015-04-09 16:55:03 -070020
21import java.util.List;
22
23/**
24 * Start/stop command completer.
25 */
Ray Milkeyd5435182018-10-11 16:18:51 -070026@Service
Thomas Vachuskac40d4632015-04-09 16:55:03 -070027public class StartStopCompleter extends AbstractChoicesCompleter {
28
29 public static final String START = "start";
30 public static final String STOP = "stop";
31
32 @Override
33 public List<String> choices() {
34 return ImmutableList.of(START, STOP);
35 }
36}