diff --git a/src/playper.cr b/src/playper.cr index bdfe455..bb35644 100644 --- a/src/playper.cr +++ b/src/playper.cr @@ -1,8 +1,18 @@ # TODO: Write documentation for `Playper` -include Reader_Input +# Should have almost no info, its used as a meta class for building the program like java main void etc. by shards build +# require marks what is needed to be built +# This is designed to initialize everything +# Reference for modules https://crystal-lang.org/reference/1.7/syntax_and_semantics/modules.html + +require "./tryerror/*" +require "./reader_input.cr" + module Playper + include ReaderInput + VERSION = "0.1.0" # TODO: Put your code here - print("Hello world") + print("Hello world!") + ReaderInput.cli_input #runs cli_input from ReaderInput end diff --git a/src/reader_input.cr b/src/reader_input.cr index e172bb5..05ad458 100644 --- a/src/reader_input.cr +++ b/src/reader_input.cr @@ -8,7 +8,9 @@ require "colorize" # Directware if used as CLI tool # Should read -module Reader_Input +module ReaderInput + extend self + def cli_input #switch() puts "Welcome to The Beatles Sing-Along version 1.0!" @@ -24,7 +26,6 @@ module Reader_Input lyrics = user_input.presence || default_lyrics - #puts "The Beatles are singing: #{"🎡#{lyrics}🎢🎸πŸ₯".colorize.mode(:blink)}" + puts "The Beatles are singing: #{"🎡#{lyrics}🎢🎸πŸ₯".colorize.mode(:blink)}" end - end