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

    Function builtin_cd

    • Changes the current working directory in the ChRIS filesystem context. Validates the existence of the target path before setting it.

      Parameters

      • args: string[]

        An array containing the target path as the first element.

      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 new working directory on success.