Added Create and Delete CLI Commands
[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 import (
19         "fmt"
20         "os"
21
22         "github.com/spf13/cobra"
23 )
24
25 var cfgFile string
26
27 // rootCmd represents the base command when called without any subcommands
28 var rootCmd = &cobra.Command{
29         Use:   "ealt",
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 
33         .`,
34         // Uncomment the following line if your bare application
35         // has an action associated with it:
36         //      Run: func(cmd *cobra.Command, args []string) { },
37 }
38
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.
41 func Execute() {
42         if err := rootCmd.Execute(); err != nil {
43                 fmt.Println(err)
44                 os.Exit(1)
45         }
46 }
47
48 func init() {
49 }