Skip to content

Commit

Permalink
fix: describe env command (#256)
Browse files Browse the repository at this point in the history
Signed-off-by: surajgour-d11 <[email protected]>
  • Loading branch information
surajgour-d11 authored Oct 10, 2024
1 parent 53ef0e9 commit 4132057
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cmd/describe/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

var name string


var environmentClient = service.Environment{}
var environmentCmd = &cobra.Command{
Use: "env",
Expand Down Expand Up @@ -76,7 +75,6 @@ func writeOutput(response *environment.DescribeEnvironmentResponse, format strin
func writeAsTextEnvResponse(response *environment.DescribeEnvironmentResponse) {

tableHeaders := []string{"Name",
"team",
"state",
"autoDeletionTime",
"cloudProviderAccounts",
Expand Down Expand Up @@ -113,12 +111,12 @@ func writeAsTextEnvResponse(response *environment.DescribeEnvironmentResponse) {
}

tableData = append(tableData, []interface{}{
*env.Name,
*env.Status,
env.GetName(),
env.GetStatus(),
env.AutoDeletionTime.AsTime().String(),
string(accountInfoListJSON),
*env.CreatedBy,
*env.UpdatedBy,
env.GetCreatedBy(),
env.GetUpdatedBy(),
env.CreatedAt.AsTime().String(),
env.UpdatedAt.AsTime().String(),
string(servicesSummaryJSON),
Expand Down

0 comments on commit 4132057

Please sign in to comment.