mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
refactor: :trollface:
This commit is contained in:
parent
bb86934b53
commit
04b2c27930
|
@ -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
|
5
trolley/.gitignore
vendored
5
trolley/.gitignore
vendored
|
@ -1,5 +0,0 @@
|
|||
/docs/
|
||||
/lib/
|
||||
/bin/
|
||||
/.shards/
|
||||
*.dwarf
|
|
@ -1,13 +0,0 @@
|
|||
name: trolley
|
||||
version: 0.1.0
|
||||
|
||||
authors:
|
||||
- Natapat Samutpong <natapat.samutpong@gmail.com>
|
||||
|
||||
targets:
|
||||
trolley:
|
||||
main: src/trolley.cr
|
||||
|
||||
crystal: 1.3.2
|
||||
|
||||
license: MIT
|
|
@ -1,2 +0,0 @@
|
|||
require "spec"
|
||||
require "../src/trolley"
|
|
@ -1,9 +0,0 @@
|
|||
require "./spec_helper"
|
||||
|
||||
describe Trolley do
|
||||
# TODO: Write tests
|
||||
|
||||
it "works" do
|
||||
false.should eq(true)
|
||||
end
|
||||
end
|
|
@ -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
|
Loading…
Reference in a new issue