Build error formatting on fission spec apply --wait (#1403)

The character `\n` in buildlog stores in package status
are escaped and so when we have to replace them with
actual line breaker.
This commit is contained in:
Ta-Ching Chen
2019-11-12 21:00:55 +08:00
committed by GitHub
parent a645a1e197
commit 1cda7e051b
5 changed files with 58 additions and 21 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ func Commands() *cobra.Command {
infoCmd := &cobra.Command{
Use: "info",
Short: "Show package information",
RunE: wrapper.Wrapper(List),
RunE: wrapper.Wrapper(Info),
}
wrapper.SetFlags(infoCmd, flag.FlagSet{
Required: []flag.Flag{flag.PkgName},
@@ -98,7 +98,7 @@ func Commands() *cobra.Command {
rebuildCmd := &cobra.Command{
Use: "rebuild",
Short: "Rebuild a failed package",
RunE: wrapper.Wrapper(List),
RunE: wrapper.Wrapper(Rebuild),
}
wrapper.SetFlags(rebuildCmd, flag.FlagSet{
Required: []flag.Flag{flag.PkgName},