mise API - v0.0.0
    Preparing search index...

    Function builtin_weather

    • Reports the weather at a place.

      Parameters

      • args: string[]

        [place…] [-u|--units metric|imperial] [-d|--days N].

      • fetchFn: WeatherFetch = ...

        The fetch to go through; the global one unless a test hands in its own.

      Returns Promise<
          {
              errors?: { message: string; type: "error"
              | "warning" }[];
              model?: { data: unknown; kind: string };
              rendered: string;
              renderedErr?: string;
              status: "error" | "ok";
              trace?: {
                  executed?: string;
                  input: string;
                  proposed: string;
                  validated: boolean;
              };
          },
      >

      An envelope carrying the rendered report and the typed report beneath it; an error envelope when a flag is unknown, the place is not found, or the service cannot be reached.