Last active
November 7, 2017 19:42
-
-
Save Willamin/62dd7dd516516685f98671f201fa1f65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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