Skip to content

Commit

Permalink
refactor: move library/util code to lib/resources/mail
Browse files Browse the repository at this point in the history
  • Loading branch information
tillwestpfahl committed Aug 28, 2024
1 parent 5e77b9c commit ed9bdf6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/commands/mail/address/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ReactNode } from "react";
import { ProcessRenderer } from "../../../rendering/process/process.js";
import { FlagInput, OutputFlags } from "@oclif/core/lib/interfaces/parser.js";
import ByteQuantity from "../../../lib/units/ByteQuantity.js";
import { generateRandomPassword } from "../commons.js";
import { generateRandomPassword } from "../../../lib/resources/mail/commons.js";

type CreateResult = {
addressId: string;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/mail/address/update.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
mailAddressArgs,
withMailAddressId,
} from "../../../lib/resources/mail/flags.js";
import { generateRandomPassword } from "../commons.js";
import { generateRandomPassword } from "../../../lib/resources/mail/commons.js";

type UpdateResult = {
generatedPassword: string | null;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/mail/deliverybox/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Success } from "../../../rendering/react/components/Success.js";
import { ReactNode } from "react";
import { ProcessRenderer } from "../../../rendering/process/process.js";
import { FlagInput, OutputFlags } from "@oclif/core/lib/interfaces/parser.js";
import { generateRandomPassword } from "../commons.js";
import { generateRandomPassword } from "../../../lib/resources/mail/commons.js";

type CreateResult = {
deliveryBoxId: string;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/mail/deliverybox/update.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
mailDeliveryBoxArgs,
withDeliveryBoxId,
} from "../../../lib/resources/mail/flags.js";
import { generateRandomPassword } from "../commons.js";
import { generateRandomPassword } from "../../../lib/resources/mail/commons.js";

type UpdateResult = {
generatedPassword: string | null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { generatePassword } from "../../lib/util/password/generatePassword.js";
import { Value } from "../../rendering/react/components/Value.js";
import { ProcessRenderer } from "../../rendering/process/process.js";
import { generatePassword } from "../../util/password/generatePassword.js";
import { Value } from "../../../rendering/react/components/Value.js";
import { ProcessRenderer } from "../../../rendering/process/process.js";
import { Text } from "ink";

export async function generateRandomPassword(
Expand Down

0 comments on commit ed9bdf6

Please sign in to comment.