spf13--cobra/cobra/cmd/testdata/test.go.golden

39 lines
975 B
Text
Raw Normal View History

2017-05-05 10:06:27 +02:00
// Copyright © 2017 NAME HERE <EMAIL ADDRESS>
//
2017-05-05 10:06:27 +02:00
// 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 cmd
import (
"fmt"
"github.com/OneCloudInc/cobra"
2017-05-05 10:06:27 +02:00
)
func init() {
rootCmd.AddCommand(testCmd)
2019-02-22 13:38:36 -05:00
}
2017-05-05 10:06:27 +02:00
2019-02-22 13:38:36 -05:00
// testCmd represents the test command
var testCmd = &cobra.Command{
Use: "test",
Short: "test",
Long: `Description`,
2019-02-22 15:51:50 -05:00
RunE: func(cmd *cobra.Command, args []string) error {
2019-02-22 13:38:36 -05:00
fmt.Println("test called, place the command logic here")
2019-02-22 15:51:50 -05:00
return nil
2019-02-22 13:38:36 -05:00
},
2017-05-05 10:06:27 +02:00
}