Skip to content

Commit

Permalink
deployment-artifacts-to-app-env: help tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre committed Apr 12, 2024
1 parent dd2e1b1 commit ee3960b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions contracts/utils/deployment-artifacts-to-app-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@ import { z } from "zod";
import { argv, echo, fs } from "zx";

const HELP = `
converts the deployment artifacts created by ./deploy into environment
variables to be used by the Next.js app located in frontend/.
Converts the deployment artifacts created by ./deploy into environment variables
to be used by the Next.js app located in frontend/.
Usage:
./deployment-artifacts-to-app-env.ts <INPUT_JSON> [OUTPUT_ENV] [OPTIONS]
Arguments:
INPUT_JSON Path to the deployment artifacts JSON file.
OUTPUT_ENV Path to the environment variables file (if missing, stdout is used).
INPUT_JSON Path to the deployment artifacts
JSON file.
OUTPUT_ENV Path to the environment variables
file to write. If not provided, it
writes to stdout.
Options:
--help, -h Show this help message.
--append Append to the output file instead of overwriting it (requires OUTPUT_ENV).
--append Append to the output file instead of
overwriting it (requires OUTPUT_ENV).
`;

const ZAddress = z.string().regex(/^0x[0-9a-fA-F]{40}$/);
Expand Down

0 comments on commit ee3960b

Please sign in to comment.