Remove entry point and project path from stack list command output columns

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-09 12:46:29 -04:00
parent 2456c349d1
commit 51ce690e1f

View File

@ -77,20 +77,16 @@ var stackListCmd = &cobra.Command{
"STACK ID", "STACK ID",
"NAME", "NAME",
"TYPE", "TYPE",
"ENTRY POINT",
"PROJECT PATH",
"ENDPOINT ID", "ENDPOINT ID",
"SWARM ID", "SWARM ID",
}) })
common.CheckError(err) common.CheckError(err)
for _, s := range stacks { for _, s := range stacks {
_, err := fmt.Fprintln(writer, fmt.Sprintf( _, err := fmt.Fprintln(writer, fmt.Sprintf(
"%v\t%s\t%v\t%s\t%s\t%v\t%s", "%v\t%s\t%v\t%v\t%s",
s.Id, s.Id,
s.Name, s.Name,
s.GetTranslatedStackType(), s.GetTranslatedStackType(),
s.EntryPoint,
s.ProjectPath,
s.EndpointID, s.EndpointID,
s.SwarmID, s.SwarmID,
)) ))