Documentation

Lake.Config.OutFormat

inductive Lake.OutFormat :

Target output formats supported by the Lake CLI (e.g., lake query).

  • text : OutFormat

    Format target output as text.

  • json : OutFormat

    Format target output as JSON.

Instances For
    @[deprecated Lake.QueryText (since := "2025-07-25")]
    class Lake.ToText (α : Type u) :
    Instances
      @[instance 0]
      instance Lake.instToTextOfToString {α : Type u_1} [ToString α] :
      Equations
      instance Lake.instToTextList {α : Type u_1} [ToText α] :
      Equations
      • One or more equations did not get rendered due to their size.
      instance Lake.instToTextArray {α : Type u_1} [ToText α] :
      Equations
      • One or more equations did not get rendered due to their size.
      class Lake.QueryText (α : Type u) :

      Class used to format target output as text for lake query.

      • queryText : αString

        Format target output as text (e.g., for lake query).

      Instances
        @[instance 0]
        instance Lake.instQueryText {α : Type u_1} :
        Equations
        @[instance 100]
        instance Lake.instQueryTextOfToText {α : Type u_1} [ToText α] :
        Equations
        Equations
        class Lake.QueryJson (α : Type u) :

        Class used to format target output as JSON for lake query -J.

        • queryJson : αLean.Json

          Format target output as JSON (e.g., for lake query -J).

        Instances
          @[instance 0]
          instance Lake.instQueryJson {α : Type u_1} :
          Equations
          @[instance 100]
          Equations
          class Lake.FormatQuery (α : Type u) extends Lake.QueryText α, Lake.QueryJson α :

          Class used to format target output for lake query.

          Instances
            Equations
            def Lake.nullFormat {α : Sort u_1} (fmt : OutFormat) :
            αString

            Format function that produces "null" output.

            Equations
            Instances For
              @[specialize #[]]
              def Lake.formatQuery {α : Type u_1} [FormatQuery α] (fmt : OutFormat) (a : α) :

              Format function that uses QueryText and QueryJson to produce output.

              Equations
              Instances For
                def Lake.ppImport (imp : Lean.Import) (isModule : Bool) (init : String := "") :
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For