Sha256: 985ba64b8434d70696e429a93d99e22e497f4d7a007f9358769b686ce9b75cdd
Contents?: true
Size: 413 Bytes
Versions: 2
Compression:
Stored size: 413 Bytes
Contents
#!/usr/bin/env ruby # coding: utf-8 require 'space2hyphen' CREATE_FLAGS = %w(-c --create) args = ARGV.reject { |arg| CREATE_FLAGS.include?(arg) } hyphen_include_sentence = Space2hyphen.convert(args) if ARGV.empty? puts Space2hyphen.usage else if ARGV.include?('-c') || ARGV.include?('--create') Space2hyphen.create_new_branch(hyphen_include_sentence) else puts hyphen_include_sentence end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
space2hyphen-0.0.2 | bin/s2h |
space2hyphen-0.0.2 | bin/space2hyphen |