Skip to content

Commit

Permalink
repl: add Problem to REPL context (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn authored Nov 10, 2024
1 parent 57beb4b commit 3720bbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/bin/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ const _ = require('lodash'); // eslint-disable-line import/no-extraneous-depende
const { sql } = require('slonik');

const container = require('../util/default-container');
const Problem = require('../util/problem');

(async () => {
const context = { ..._.omit(container, 'with'), container, sql };
const context = {
..._.omit(container, 'with'),
container,
sql,
Problem,
};
const replGlobals = Object.keys(context);

try {
Expand Down

0 comments on commit 3720bbe

Please sign in to comment.