Sha256: b54c55cf24d7f96a044a322a4dc96b513cd92dcdf5dce4b530ab5a6e3bf9b239
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 Bytes
Contents
#!/usr/bin/env ruby require 'sublime_sunippetter' require "thor" module SublimeSunippetter #= SublimeSunippetter CLI class CLI < Thor class_option :help, :type => :boolean, :aliases => '-h', :desc => 'help message.' class_option :version, :type => :boolean, :desc => 'version' default_task :execute desc "execute", "generate Sublime Text2 snippet" def execute SublimeSunippetter::Core.new.generate_sunippets end desc "init", "generate Sunippetdefine" def init SublimeSunippetter::Core.new.init end desc "version", "version" def version p SublimeSunippetter::VERSION end end end SublimeSunippetter::CLI.start
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sublime_sunippetter-0.0.3 | bin/suni |
sublime_sunippetter-0.0.2 | bin/suni |