Fission supportability: Add dump command to dump information for debugging (#754)

* Add v1 support tool proposal
* Fission supportability: Add dump command to dump information for debugging
This commit is contained in:
Ta-Ching Chen
2018-09-19 14:35:51 +08:00
committed by GitHub
parent a86c9431d3
commit 6b49c194ca
25 changed files with 1397 additions and 609 deletions
+3 -2
View File
@@ -22,11 +22,12 @@ import (
"os"
"text/tabwriter"
"github.com/fission/fission/fission/util"
"github.com/urfave/cli"
)
func replay(c *cli.Context) error {
fc := getClient(c.GlobalString("server"))
fc := util.GetApiClient(c.GlobalString("server"))
reqUID := c.String("reqUID")
if len(reqUID) == 0 {
@@ -34,7 +35,7 @@ func replay(c *cli.Context) error {
}
responses, err := fc.ReplayByReqUID(reqUID)
checkErr(err, "replay records")
util.CheckErr(err, "replay records")
w := tabwriter.NewWriter(os.Stdout, 0, 0, 1, ' ', 0)