Skip to content

Commit

Permalink
Added a printDefault() method
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-cros committed Jan 5, 2022
1 parent f170072 commit 6f8e930
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/gallia/heads/HeadsOut.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ trait HeadUOut { ignored: HeadU =>
def formatPrettyJson : String = { val sw = new java.io.StringWriter; write(_.formatString(sw).prettyJson) ; sw.toString }

// ---------------------------------------------------------------------------
def printDefault () = { printJson }
def printString () = { printJson }

def printJson () = { printPrettyJson }
Expand Down Expand Up @@ -99,6 +100,7 @@ trait HeadZOut { ignored: HeadZ =>
def printSchema() = { showSchema()._metaOnly() }

// ---------------------------------------------------------------------------
def printDefault () = { printJsonLines }
def printString () = { printJsonLines }

def printJsonl () = { printJsonLines }
Expand Down

0 comments on commit 6f8e930

Please sign in to comment.