Skip to content

Instantly share code, notes, and snippets.

@Willamin
Last active November 7, 2017 19:42
Show Gist options
  • Save Willamin/62dd7dd516516685f98671f201fa1f65 to your computer and use it in GitHub Desktop.
Save Willamin/62dd7dd516516685f98671f201fa1f65 to your computer and use it in GitHub Desktop.
$ cat examples/simple.cr
require "../src/beeline"
Beeline.config do
top_level_colors
fore Black
end
$ crystal run examples/simple.cr
Error in examples/simple.cr:2: instantiating 'Beeline:Class#config()'
Beeline.config do
^~~~~~
in examples/simple.cr:2: instantiating 'Beeline:Class#config()'
Beeline.config do
^~~~~~
in examples/simple.cr:4: undefined constant Black
fore Black
^~~~~
$ cat examples/simple.cr
require "../src/beeline"
Beeline.config do
top_level_colors
# fore Black
end
$ crystal tool expand -c examples/simple.cr:3:3 examples/simple.cr
1 expansion found
expansion 1:
top_level_colors
~> Black = BLine::Colors::Color::Black
Red = BLine::Colors::Color::Red
Green = BLine::Colors::Color::Green
Yellow = BLine::Colors::Color::Yellow
Blue = BLine::Colors::Color::Blue
Magenta = BLine::Colors::Color::Magenta
Cyan = BLine::Colors::Color::Cyan
White = BLine::Colors::Color::White
Twofiftysix = BLine::Colors::Color::Twofiftysix
Clear = BLine::Colors::Color::Clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment