Sha256: e58dc415e571e248302af6b6ffe72cc56437cac5c9ca510483e8f167e80f3e8d

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 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

2 entries across 1 versions & 1 rubygems

Version Path
space2dash-0.0.4 bin/s2d
space2dash-0.0.4 bin/space2dash