Refactor record command (#1378)

This commit is contained in:
Ta-Ching Chen
2019-11-05 10:30:16 +08:00
committed by GitHub
parent c33f1e112e
commit b0d27ee5d2
16 changed files with 605 additions and 344 deletions
+1 -2
View File
@@ -18,10 +18,10 @@ package httptrigger
import (
"fmt"
"github.com/pkg/errors"
"net/http"
"strings"
"github.com/pkg/errors"
"github.com/satori/go.uuid"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -55,7 +55,6 @@ func (opts *CreateSubCommand) do(flags cli.Input) error {
return opts.run(flags)
}
// complete creates a environment objects and populates it with default value and CLI inputs.
func (opts *CreateSubCommand) complete(flags cli.Input) error {
functionList := flags.StringSlice("function")
functionWeightsList := flags.IntSlice("weight")