Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

426 B
Raw Blame
import { Effect } from "effect";
import { CliError } from "effect/cli";
import { compileJq } from "./compile-jq.js";

export const jqFlagValue = (expression: string) =>
  compileJq(expression).pipe(
    Effect.mapError(
      (detail) =>
        new CliError.InvalidValue({
          option: "jq",
          value: expression,
          expected: `a jq expression (${detail})`,
          kind: "flag",
        }),
    ),
  );