Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix resolve json-full format #189

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can ignore... moving all the lodash imports over

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
Loading