1/*
2Copyright © 2020 NAME HERE <EMAIL ADDRESS>
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16package cmd
17
18import (
19	"fmt"
20
21	"github.com/spf13/cobra"
22)
23
24// testCmd represents the test command
25var testCmd = &cobra.Command{
26	Use:   "test",
27	Short: "A brief description of your command",
28	Long: `A longer description that spans multiple lines and likely contains examples
29and usage of using your command. For example:
30
31Cobra is a CLI library for Go that empowers applications.
32This application is a tool to generate the needed files
33to quickly create a Cobra application.`,
34	Run: func(cmd *cobra.Command, args []string) {
35		fmt.Println("test called")
36	},
37}
38
39func init() {
40	rootCmd.AddCommand(testCmd)
41
42	// Here you will define your flags and configuration settings.
43
44	// Cobra supports Persistent Flags which will work for this command
45	// and all subcommands, e.g.:
46	// testCmd.PersistentFlags().String("foo", "", "A help for foo")
47
48	// Cobra supports local flags which will only run when this command
49	// is called directly, e.g.:
50	// testCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
51}
52