summaryrefslogtreecommitdiffstats
path: root/src/tools/emcoctl/cmd/apply.go
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2020-08-29 01:27:53 -0700
committerRitu Sood <ritu.sood@intel.com>2020-09-02 13:59:58 -0700
commitd8ed6e76a40b8942c2b56c623dcc097d734e3dca (patch)
treefe5712061d02d1d971b84cbc2f2f7bca68666cfd /src/tools/emcoctl/cmd/apply.go
parentd14246bb9a2c8874f9925c45322d678a93584adb (diff)
Update CLI with complete get implementation
CLI updated with get functionality. Also adding vFw test case Issue-ID: MULTICLOUD-1065 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I7bd22aca9fac9cb7b1f4c93d0ffad5b07b62cced
Diffstat (limited to 'src/tools/emcoctl/cmd/apply.go')
-rw-r--r--src/tools/emcoctl/cmd/apply.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tools/emcoctl/cmd/apply.go b/src/tools/emcoctl/cmd/apply.go
index f451a614..cf494bc4 100644
--- a/src/tools/emcoctl/cmd/apply.go
+++ b/src/tools/emcoctl/cmd/apply.go
@@ -24,9 +24,8 @@ import (
// applyCmd represents the apply command
var applyCmd = &cobra.Command{
Use: "apply",
- Short: "apply(Post) the resources from input file or url(with body) from command line",
+ Short: "apply(Post) the resources from input file or url(without body) from command line",
Run: func(cmd *cobra.Command, args []string) {
- fmt.Println("apply called")
c := NewRestClient()
if len(inputFiles) > 0 {
resources := readResources()
@@ -46,7 +45,6 @@ var applyCmd = &cobra.Command{
}
}
} else if len(args) >= 1 {
- fmt.Println(args[0])
c.RestClientPost(args[0], []byte{})
} else {
fmt.Println("Error: No args ")
@@ -55,8 +53,7 @@ var applyCmd = &cobra.Command{
}
func init() {
- fmt.Println("INIT ")
rootCmd.AddCommand(applyCmd)
applyCmd.Flags().StringSliceVarP(&inputFiles, "filename", "f", []string{}, "Filename of the input file")
- applyCmd.Flags().StringSliceVarP(&valuesFiles, "values", "v", []string{}, "Values to go with the file")
+ //applyCmd.Flags().StringSliceVarP(&valuesFiles, "values", "v", []string{}, "Values to go with the file")
}