Adding EaltEdge CLI Command For Deployment
[ealt-edge.git] / ocd / cli / ealt / cmd / root.go
1 /*
2  * Copyright 2020 Huawei Technologies Co., Ltd.
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  */
16 package cmd
17
18
19  import (
20         "fmt"
21         "os"
22
23         "github.com/spf13/cobra"
24 )
25
26 var cfgFile string
27
28 // rootCmd represents the base command when called without any subcommands
29 var rootCmd = &cobra.Command{
30         Use:   "ealt",
31         Short: "Command Line Interface for EALTEdge ",
32         Long: `Command Line Interface to deploy and manage EALTEdge Environment. 
33         The operations supported by CLI commands are 
34         .`,
35         // Uncomment the following line if your bare application
36         // has an action associated with it:
37         //      Run: func(cmd *cobra.Command, args []string) { },
38 }
39
40 // Execute adds all child commands to the root command and sets flags appropriately.
41 // This is called by main.main(). It only needs to happen once to the rootCmd.
42 func Execute() {
43         if err := rootCmd.Execute(); err != nil {
44                 fmt.Println(err)
45                 os.Exit(1)
46         }
47 }
48
49 func init() {
50 }