diff --git a/trolley/.editorconfig b/trolley/.editorconfig deleted file mode 100644 index 163eb75..0000000 --- a/trolley/.editorconfig +++ /dev/null @@ -1,9 +0,0 @@ -root = true - -[*.cr] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -indent_style = space -indent_size = 2 -trim_trailing_whitespace = true diff --git a/trolley/.gitignore b/trolley/.gitignore deleted file mode 100644 index 0bb75ea..0000000 --- a/trolley/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -/docs/ -/lib/ -/bin/ -/.shards/ -*.dwarf diff --git a/trolley/shard.yml b/trolley/shard.yml deleted file mode 100644 index 649d4c4..0000000 --- a/trolley/shard.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: trolley -version: 0.1.0 - -authors: - - Natapat Samutpong - -targets: - trolley: - main: src/trolley.cr - -crystal: 1.3.2 - -license: MIT diff --git a/trolley/spec/spec_helper.cr b/trolley/spec/spec_helper.cr deleted file mode 100644 index 6ea484a..0000000 --- a/trolley/spec/spec_helper.cr +++ /dev/null @@ -1,2 +0,0 @@ -require "spec" -require "../src/trolley" diff --git a/trolley/spec/trolley_spec.cr b/trolley/spec/trolley_spec.cr deleted file mode 100644 index 4497898..0000000 --- a/trolley/spec/trolley_spec.cr +++ /dev/null @@ -1,9 +0,0 @@ -require "./spec_helper" - -describe Trolley do - # TODO: Write tests - - it "works" do - false.should eq(true) - end -end diff --git a/trolley/src/trolley.cr b/trolley/src/trolley.cr deleted file mode 100644 index 674d8de..0000000 --- a/trolley/src/trolley.cr +++ /dev/null @@ -1,35 +0,0 @@ -require "option_parser" - -module Trolley - VERSION = "0.1.0" - - def self.display_help - puts "trolley " + VERSION - puts <<-HELP - USAGE: - trolley [COMMAND] [OPTION] - - COMMANDS: - -h, --help Display this help message - -v, --version Display version - HELP - exit - end - - def self.run - OptionParser.parse do |parser| - parser.on("-h", "--help") do - display_help - end - - parser.on("-v", "--version") do - puts "trolley " + VERSION - exit - end - end - end -end - -begin - Trolley.run -end