Skip to content

Allow configuration of output colors #5

@calebhearth

Description

@calebhearth

It would be great if we could configure colors for the the output.

One potential configuration file format, inspired by Git's config but in TOML, could be like this. I've included the current (future default?) colors as examples.

# single value specifies foreground color
[color]
  equal = "normal # normal is the default terminal color, as opposed to white or"
                  # black which would override the terminal and potentiall be
                  # invisible
  date = "normal"
  key = "brightblue"
  null = "yellow"
  numeric = "magenta"
  string = "brightgreen"

# two values specify foreground and background colors, and a third value
# specifies text style (i.e., bold, italic, underline, normal)
[color.levels]
  debug = "black cyan bold"
  info = "black green bold"
  warning = "black yellow bold"
  error = "black red bold"
  fatal = "red black bold"

# color values could be specified as:
# - "normal" (default terminal color)
# - standard colors (black, red, yellow, blue, magenta, cyan, white),
# potentially prefixed with "bright"
# - as hex codes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions