Skip to content

Commit

Permalink
cli commands cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
theoephraim committed Jan 21, 2025
1 parent d31dc16 commit f54878e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/cli/commands/clear-cache.command.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import kleur from 'kleur';
import * as _ from 'lodash-es';
import { outdent } from 'outdent';

import { DmnoCommand } from '../lib/dmno-command';
import { getCliRunCtx } from '../lib/cli-ctx';
import { pathExists } from '../../lib/fs-utils';

const program = new DmnoCommand('clear-cache')
.summary('cache utils')
Expand Down
6 changes: 2 additions & 4 deletions packages/core/src/cli/commands/dev.command.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import kleur from 'kleur';
import * as _ from 'lodash-es';
import { outdent } from 'outdent';
import gradient from 'gradient-string';
import boxen from 'boxen';
import { DmnoCommand } from '../lib/dmno-command';
import { formatError, formattedValue, getItemSummary } from '../lib/formatting';
import { getItemSummary } from '../lib/formatting';
import { getCliRunCtx } from '../lib/cli-ctx';
import { ConfigServer } from '../../config-loader/config-server';
import { addCacheFlags } from '../lib/cache-helpers';
import { addServiceSelection } from '../lib/selection-helpers';
import { DMNO_DEV_BANNER, fallingDmnoLoader, fallingDmnosAnimation } from '../lib/loaders';
import { DMNO_DEV_BANNER, fallingDmnosAnimation } from '../lib/loaders';

const TERMINAL_COLS = Math.floor(process.stdout.columns * 0.75);

Expand Down
8 changes: 2 additions & 6 deletions packages/core/src/cli/commands/init.command.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import kleur from 'kleur';
import * as _ from 'lodash-es';
import boxen from 'boxen';

import {
input, checkbox, confirm,
} from '@inquirer/prompts';

import { input, checkbox, confirm } from '@inquirer/prompts';
import { tryCatch } from '@dmno/ts-lib';

import Debug from 'debug';

import { findDmnoServices } from '../../config-loader/find-services';
import { DmnoCommand } from '../lib/dmno-command';

Expand Down
9 changes: 1 addition & 8 deletions packages/core/src/cli/commands/resolve.command.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import kleur from 'kleur';
import * as _ from 'lodash-es';
import { tryCatch } from '@dmno/ts-lib';
import { outdent } from 'outdent';
import boxen from 'boxen';
import { DmnoCommand } from '../lib/dmno-command';

import {
formatError, formattedValue, getItemSummary, joinAndCompact,
} from '../lib/formatting';
import { getItemSummary } from '../lib/formatting';
import { addServiceSelection } from '../lib/selection-helpers';
import { getCliRunCtx } from '../lib/cli-ctx';
import { addCacheFlags } from '../lib/cache-helpers';
import { addWatchMode } from '../lib/watch-mode-helpers';
import { CliExitError } from '../lib/cli-error';
import { checkForConfigErrors, checkForSchemaErrors } from '../../config-engine/check-errors-helpers';
import { stringifyObjectAsEnvFile } from '../lib/env-file-helpers';
import { isSubshell } from '../lib/shell-helpers';
Expand Down

0 comments on commit f54878e

Please sign in to comment.