Provides the method in
which converts Any
to String
in
AnsiStyle
.
Encoding of AnsiStyle
s
Provides method toAnsiStyle
which converts ansi codes to AnsiStyle
.
A wrapper for String
s, provided so that it can be used as an implicit
parameter, which String
s are not ideal for.
A wrapper for Int
s, provided so that it can be used as an implicit
parameter, which Int
s are not ideal for.
Implicit conversion from T
to XrayFromSpells
, which contains methods like xray
and xrayIf
.
Instances of this class are created by methods like xray
or xrayIf
.
Provides out-of-the-box AnsiStyle
s as well as a utility method to remove them.
Utility object, which provides an API to write and read from the operating systems' clipboard.
Prints an object to out using its toString method, beginning at the first character in the current line of your terminal.
Prints an object to out using its toString method, beginning at the first character in the current line of your terminal.
the object to print
custom AnsiStyle
Prints out an object to the default output, beginning at the first character in the current line of your terminal, followed by a newline character.
Prints out an object to the default output, beginning at the first character in the current line of your terminal, followed by a newline character.
the object to print
custom AnsiStyle
Moves the caret to the beginning of the line.
Moves the caret to the beginning of the line.
the object to be moved to the beginning of the line
custom AnsiStyle
the object, which when printing will begin at the first character in the current line of your terminal.
Creates an instance of StackTraceElement
at current line.
Creates an instance of StackTraceElement
at current line.
adjust if you build a library around it and the line stopps matching
an instance of StackTraceElement
at current line.
Styles Any in Red
.
Measures the execution time of an expression.
Measures the execution time of an expression.
the result type of the expression
the expression to be measured
a Tuple2 with the value of the expression and it's execution time
This method is similar to the identity
method from the Scala standard library, but this one does not return anything.
This method is similar to the identity
method from the Scala standard library, but this one does not return anything.
input type
()
Prints an object to out using its toString method.
Prints an object to out using its toString method.
the object to print; may be null
the style for the object to be printed in
Write to the err
stream in AnsiStyle.Red
.
Write to the err
stream in AnsiStyle.Red
.
which will be written to the stream
Prints out an object to the default output, followed by a newline character.
Prints out an object to the default output, followed by a newline character.
the object to print
the style for the object to be printed in
Styled an object in a given style.
Styled an object in a given style. Involves deep (already existing styles will be preserved) styling.
styled("green" + "yellow".yellow + "green")(Green) // yellow is preserved
the object to print
the style for the object to be printed in
the styled object as String
A wrapper for Int
s, provided so that it can be used as an implicit
parameter, which Int
s are not ideal for.
A wrapper for Int
s, provided so that it can be used as an implicit
parameter, which Int
s are not ideal for.
the Int
to be wrapped.
Creates an instance of XrayReport
.
Creates an instance of XrayReport
. Primarily useful for library authors.
the type, your expression evaluates to
the expression to be evaluated
an optional description
the depth can be used in certain cases when you want to write your own library and have issues with line numberes jumping around
the typeTag injected by the compiler
outer style for the report
custom rendering for T
an instance of XrayReport
, which can be rendered or written to a database etc etc
Creates an instance of XrayReport
.
Creates an instance of XrayReport
. Primarily useful for library authors.
the type, your expression evaluates to
the expression to be evaluated
an optional description
the depth can be used in certain cases when you want to write your own library and have issues with line numberes jumping around
outer style for the report
an instance of XrayReport
, which can be rendered or written to a database etc etc
The main spells module. Mix it into the highest level
package object
you can afford, in order to gain the most benefit from spells.