Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add command mami name

  • Loading branch information...
commit 29e3b93565b718de183b599876f5f06416df48ed 1 parent 2220d46
@sanemat authored
Showing with 19 additions and 0 deletions.
  1. +5 −0 bin/mami
  2. +1 −0  lib/mami.rb
  3. +11 −0 lib/mami/cli.rb
  4. +2 −0  mami.gemspec
View
5 bin/mami
@@ -0,0 +1,5 @@
+#!/usr/bin/env ruby
+
+require 'mami'
+
+Mami::CLI.start
View
1  lib/mami.rb
@@ -1,4 +1,5 @@
require "mami/version"
+require "mami/cli"
module Mami
# Your code goes here...
View
11 lib/mami/cli.rb
@@ -0,0 +1,11 @@
+require 'mami'
+require 'thor'
+
+module Mami
+ class CLI < Thor
+ desc 'echo mami', 'echo mami name'
+ def name
+ puts 'Tomoe Mami'
+ end
+ end
+end
View
2  mami.gemspec
@@ -20,4 +20,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
+
+ spec.add_dependency 'thor'
end
Please sign in to comment.
Something went wrong with that request. Please try again.