Skip to content

Commit

Permalink
refactor(args): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 10, 2021
1 parent ee847e0 commit 890936b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/args/src/args.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Fn } from "@thi.ng/api";
import { repeat } from "@thi.ng/strings";
import { repeat } from "@thi.ng/strings/repeat";
import type { ArgSpec, KVDict, KVMultiDict, Tuple } from "./api";
import {
coerceFloat,
Expand Down
5 changes: 3 additions & 2 deletions packages/args/src/coerce.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Fn } from "@thi.ng/api";
import { isHex, isNumericFloat, isNumericInt } from "@thi.ng/checks";
import { illegalArgs } from "@thi.ng/errors";
import { isHex } from "@thi.ng/checks/is-hex";
import { isNumericFloat, isNumericInt } from "@thi.ng/checks/is-numeric";
import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
import { KVDict, KVMultiDict, Tuple } from "./api";

export const coerceString = (x: string) => x;
Expand Down
6 changes: 3 additions & 3 deletions packages/args/src/parse.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IObjectOf, Nullable } from "@thi.ng/api";
import { isArray } from "@thi.ng/checks";
import { illegalArgs } from "@thi.ng/errors";
import { camel } from "@thi.ng/strings";
import { isArray } from "@thi.ng/checks/is-array";
import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
import { camel } from "@thi.ng/strings/case";
import type { Args, ArgSpecExt, ParseOpts, ParseResult } from "./api";
import { usage } from "./usage";

Expand Down
16 changes: 6 additions & 10 deletions packages/args/src/usage.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import type { IObjectOf, Pair } from "@thi.ng/api";
import {
capitalize,
kebab,
lengthAnsi,
padRight,
repeat,
SPLIT_ANSI,
stringify,
wordWrapLines,
} from "@thi.ng/strings";
import { lengthAnsi } from "@thi.ng/strings/ansi";
import { capitalize, kebab } from "@thi.ng/strings/case";
import { padRight } from "@thi.ng/strings/pad-right";
import { repeat } from "@thi.ng/strings/repeat";
import { stringify } from "@thi.ng/strings/stringify";
import { SPLIT_ANSI, wordWrapLines } from "@thi.ng/strings/word-wrap";
import { Args, ArgSpecExt, ColorTheme, DEFAULT_THEME, UsageOpts } from "./api";

export const usage = <T extends IObjectOf<any>>(
Expand Down

0 comments on commit 890936b

Please sign in to comment.