Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add command mami name

  • Loading branch information...
commit 29e3b93565b718de183b599876f5f06416df48ed 1 parent 2220d46
Murahashi Sanemat Kenichi authored
5  bin/mami
... ...
@@ -0,0 +1,5 @@
  1
+#!/usr/bin/env ruby
  2
+
  3
+require 'mami'
  4
+
  5
+Mami::CLI.start
1  lib/mami.rb
... ...
@@ -1,4 +1,5 @@
1 1
 require "mami/version"
  2
+require "mami/cli"
2 3
 
3 4
 module Mami
4 5
   # Your code goes here...
11  lib/mami/cli.rb
... ...
@@ -0,0 +1,11 @@
  1
+require 'mami'
  2
+require 'thor'
  3
+
  4
+module Mami
  5
+  class CLI < Thor
  6
+    desc 'echo mami', 'echo mami name'
  7
+    def name
  8
+      puts 'Tomoe Mami'
  9
+    end
  10
+  end
  11
+end
2  mami.gemspec
@@ -20,4 +20,6 @@ Gem::Specification.new do |spec|
20 20
 
21 21
   spec.add_development_dependency "bundler", "~> 1.3"
22 22
   spec.add_development_dependency "rake"
  23
+
  24
+  spec.add_dependency 'thor'
23 25
 end

0 notes on commit 29e3b93

Please sign in to comment.
Something went wrong with that request. Please try again.