Skip to content

Commit

Permalink
fix resolve json-full format (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoephraim authored Jan 7, 2025
1 parent eccfdee commit 016e45e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-geckos-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"dmno": patch
---

fix resolve format json-full
6 changes: 4 additions & 2 deletions packages/core/src/cli/commands/resolve.command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import kleur from 'kleur';
import _ from 'lodash-es';
import * as _ from 'lodash-es';
import { tryCatch } from '@dmno/ts-lib';
import { outdent } from 'outdent';
import boxen from 'boxen';
Expand Down Expand Up @@ -79,8 +79,10 @@ program.action(async (opts: {
// console.log(service.config);
if (opts.format === 'json') {
console.log(JSON.stringify(getExposedConfigValues()));
} else if (opts.format === 'json-full') {
} else if (opts.format === 'debug') {
console.dir(service, { depth: null });
} else if (opts.format === 'json-full') {
console.log(JSON.stringify(service));
} else if (opts.format === 'json-injected') {
const { injectedDmnoEnv } = await ctx.dmnoServer.makeRequest('getServiceResolvedConfig', ctx.selectedService.serviceName);
console.log(JSON.stringify(injectedDmnoEnv));
Expand Down

0 comments on commit 016e45e

Please sign in to comment.