Skip to content

Commit

Permalink
Merge branch 'develop' into d-431
Browse files Browse the repository at this point in the history
  • Loading branch information
Nil2000 authored Oct 13, 2024
2 parents 0de10c2 + f4af874 commit 2d66a55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 5 additions & 4 deletions apps/cli/src/commands/environment/get.environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ export class GetEnvironment extends BaseCommand {
)

if (success) {
Logger.info('Environment fetched successfully:')
Logger.info(
`Environment Slug: ${environment.slug}, Name: ${environment.name}, Description: ${environment.description}`
)
Logger.info(`Name: ${environment.name}`)
Logger.info(`Slug: ${environment.slug}`)
Logger.info(`Description: ${environment.description}`)
Logger.info(`Created On: ${environment.createdAt}`)
Logger.info(`Updated On: ${environment.updatedAt}`)
} else {
Logger.error(`Error fetching environment: ${error.message}`)
}
Expand Down
6 changes: 2 additions & 4 deletions apps/cli/src/commands/environment/list.environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ export class ListEnvironment extends BaseCommand {

if (success) {
Logger.info('Fetched environments:')
environments.items.forEach((environment) => {
Logger.info(
`- ID: ${environment.id}, Name: ${environment.name}, Description: ${environment.description}`
)
environments.items.forEach((environment: any) => {
Logger.info(`- ${environment.name} (${environment.slug})`)
})
} else {
Logger.error(`Failed to fetch environments: ${error.message}`)
Expand Down

0 comments on commit 2d66a55

Please sign in to comment.