Skip to content

Commit

Permalink
fix: ps formatting (#4714)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Feb 27, 2025
1 parent 9512afc commit ad91548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/ftl/cmd_ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ func (s *psCmd) Run(ctx context.Context, client ftlv1connect.AdminServiceClient)
return err
}

// Format: deployment, N/M replicas running
format := "%-30s %d\n"
fmt.Printf("%-30s %s\n", "DEPLOYMENT", "REPLICAS")
for _, module := range status.Msg.Schema.Modules {
if module.Builtin {
continue
}
// Format: deployment, N/M replicas running
format := "%-30s %d\n"
fmt.Printf("%-30s %s\n", "DEPLOYMENT", "REPLICAS")
fmt.Printf(format, module.GetRuntime().GetDeployment().DeploymentKey, 1) //TODO: MinReplicas is broken at the moment
}
return nil
Expand Down

0 comments on commit ad91548

Please sign in to comment.