From f2e5ce82e0b855b3f14c6192232a97a5c266aa99 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Mon, 13 Aug 2018 14:29:48 +0530 Subject: Add command profile configuration Issue-ID: VNFSDK-300 CLI-123 Change-Id: I41e3b1de4373966f86382ff4ffd9db367cd444ec Signed-off-by: Kanagaraj Manickam k00365106 --- .../cli/fw/cmd/conf/OnapCommandCmdConstants.java | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 profiles/command/src/main/java/org/onap/cli/fw/cmd/conf/OnapCommandCmdConstants.java (limited to 'profiles/command/src/main') diff --git a/profiles/command/src/main/java/org/onap/cli/fw/cmd/conf/OnapCommandCmdConstants.java b/profiles/command/src/main/java/org/onap/cli/fw/cmd/conf/OnapCommandCmdConstants.java new file mode 100644 index 00000000..fcd182ab --- /dev/null +++ b/profiles/command/src/main/java/org/onap/cli/fw/cmd/conf/OnapCommandCmdConstants.java @@ -0,0 +1,42 @@ +/* + * Copyright 2018 Huawei Technologies Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.onap.cli.fw.cmd.conf; + +/** + * OnapCommandCmdConstants. + * + */ +public class OnapCommandCmdConstants { + public static final String CONF = "open-cli-cmd.properties"; + + //cmd + public static final String CMD = "cmd"; + public static final String COMMAND = "command"; + public static final String ENVIRONMENT = "environment"; + public static final String WD = "working_directory"; + public static final String SUCCESS_EXIT_CODE = "success_code"; + + public static final String CMD_MANDATORY_SECTIONS = "cli.schema.cmd.sections.mandatory"; + public static final String CMD_SECTIONS = "cli.schema.cmd.sections"; + + public static final String DEFAULT_PARAMETER_CMD_FILE_NAME = "default_input_parameters_cmd.yaml"; + private OnapCommandCmdConstants() { + //as per coding standard ! + } +} + + -- cgit 1.2.3-korg