Sha256: 2575eb1ccbee488aaccd0fcf0ec4331a4e9193ef54257646287526c0c6fd672d
Contents?: true
Size: 498 Bytes
Versions: 3
Compression:
Stored size: 498 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'space2underscore' require 'pry' CREATE_FLAGS = %w(-c --create).freeze args = ARGV.reject { |arg| CREATE_FLAGS.include?(arg) } convert_flag = ARGV.select { |arg| CREATE_FLAGS.include?(arg) } underscore_include_sentence = Space2underscore.convert(args) return puts Space2underscore.usage if ARGV.empty? if convert_flag.empty? puts underscore_include_sentence else Space2underscore.create_new_branch(underscore_include_sentence) end
Version data entries
3 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
space2underscore-0.5.0 | bin/s2u |
space2underscore-0.5.0 | bin/space2underscore |
space2underscore-0.4.3 | bin/space2underscore |