blob: c08a701db3264b819bacbb2f35a08fa5cfdddd15 [file] [log] [blame]
jaegonkim06e12102019-03-03 16:58:30 +09001/*
2 * Copyright 2019-present Open Networking Foundation
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.workflow.cli;
17
18import com.google.common.collect.ImmutableList;
19import org.apache.karaf.shell.api.action.lifecycle.Service;
20import org.onosproject.cli.AbstractChoicesCompleter;
21
22import java.util.List;
23
jaegonkim2d0bd6e2019-03-20 22:25:17 +090024import static org.onosproject.workflow.cli.WorkFlowTestCommand.EXCEPTION_SAMPLE;
jaegonkim06e12102019-03-03 16:58:30 +090025import static org.onosproject.workflow.cli.WorkFlowTestCommand.INVOKE_SAMPLE;
26
27/**
28 * Workflow test command completer.
29 */
30@Service
31public class WorkFlowTestCompleter extends AbstractChoicesCompleter {
32 @Override
33 protected List<String> choices() {
jaegonkim2d0bd6e2019-03-20 22:25:17 +090034 return ImmutableList.of(INVOKE_SAMPLE, EXCEPTION_SAMPLE);
jaegonkim06e12102019-03-03 16:58:30 +090035 }
36}