class ActivityIndicator<A>
An instance of a ActivityIndicatorType
that can be started, failed, and succeeded.
enum ActivityIndicatorState
Possible states to draw / render and ActivityIndicatorType
.
struct AndFragment<T, U>
Combine the current fragment with another, which will be written after the current fragment finishes.
struct AnySendableHashable
A Sendable
version of the standard library’s AnyHashable
type.
enum ConsoleClear
Supported methods for clearing the Console
.
enum ConsoleColor
Supported colors for creating a ConsoleStyle
for ConsoleText
.
struct ConsoleFragmentLogger<T>
Outputs logs to a Console
via a LoggerFragment
pipeline.
struct ConsoleLogger
Outputs logs to a Console
.
struct ConsoleStyle
Representation of a style for outputting to a Console in different colors with differing attributes. A few suggested default styles are provided.
struct ConsoleText
A collection of ConsoleTextFragment
s. Represents stylized text that can be outputted to a Console
.
struct ConsoleTextFragment
A single piece of ConsoleText
. Contains a raw String
and the desired ConsoleStyle
.
struct CustomActivity
An activity indicator with customizable frames and success and failure messages.
struct FragmentOutput
The output of a LoggerFragment
, including some intermediary state used for things like deduplicating separators.
struct IfMaxLevelFragment<T>
Make the current fragment conditional, only calling its output
method if the record’s loggerLevel
is maxLevel
or lower
struct LabelFragment
Writes the label of the logger, and requests a separator for the next fragment.
struct LevelFragment
Writes the level of the logged message, and requests a separator for the next fragment.
struct LiteralFragment
Writes the given text to the output. This type does not request a separator for the next fragment
struct LoadingBar
Loading-style implementation of ActivityBar
.
struct LogRecord
Information about a specific log message, including information from the logger the message was logged to.
struct LoggerSourceFragment
Writes the source of the logged message. By default the source is the name of the module the message was logged in.
struct MessageFragment
Writes the logged message to the output, and requests a separator for the next fragment.
struct MetadataFragment
Writes the combined metadata to the output, and requests a separator for the next fragment only if the metadata was not empty.
struct ProgressBar
Progress-style implementation of ActivityBar
.
struct SeparatorFragment<T>
struct SourceLocationFragment
Writes the file location of the logged message, including the line. This fragment requests a separator for the next fragment.
struct SystemTimestampSource
The default TimestampSource
, which gets the time from the system.
class Terminal
Generic console that uses a mixture of Swift standard library and Foundation code to fulfill protocol requirements.
struct TimestampFragment<S>
Writes a formatted timestamp based on the time obtained from the TimestampSource
.