2 * Copyright 2020 Huawei Technologies Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 "github.com/spf13/cobra"
27 // rootCmd represents the base command when called without any subcommands
28 var rootCmd = &cobra.Command{
30 Short: "Command Line Interface for EALTEdge ",
31 Long: `Command Line Interface to deploy and manage EALTEdge Environment.
32 The operations supported by CLI commands are
34 // Uncomment the following line if your bare application
35 // has an action associated with it:
36 // Run: func(cmd *cobra.Command, args []string) { },
39 // Execute adds all child commands to the root command and sets flags appropriately.
40 // This is called by main.main(). It only needs to happen once to the rootCmd.
42 if err := rootCmd.Execute(); err != nil {