Sha256: 833f912a1ea3c7ca1ef7b0fa6fbc2ed234013455dd14a95e82432054208c059f

Contents?: true

Size: 287 Bytes

Versions: 3

Compression:

Stored size: 287 Bytes

Contents

#!/usr/bin/env ruby
require 'space2dash'

CREATE_FLAGS = %w(-c --create)

args = ARGV.reject { |arg| CREATE_FLAGS.include?(arg) }
result  = Space2dash.convert(args)

if ARGV.include?('-c') || ARGV.include?('--create')
  print Space2dash.create_new_branch(result)
else
  print result
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
space2dash-0.0.3 bin/space2dash
space2dash-0.0.2 bin/space2dash
space2dash-0.0.1 bin/space2dash