Sha256: 1fa4687cffa17be39c50d3631e807c6dc9f7762fdd59580230ef82981f707338
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
#!/usr/bin/env ruby 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.3 | bin/s2h |
space2hyphen-0.0.3 | bin/space2hyphen |