Sha256: db48fa436f7cac6c5b0e62ae7410fbf303e850990469e78d8d832a228fedb389

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift("#{__dir__}/../lib")

require "tansaku"

def is_help?
  ARGV.length == 1 && ARGV.first.casecmp("help").zero?
end

ARGV.unshift(Tansaku::CLI.default_task) unless Tansaku::CLI.all_tasks.key?(ARGV[0])

if is_help?
  Tansaku::CLI.start(["help", Tansaku::CLI.default_task] )
else
  Tansaku::CLI.start(ARGV)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tansaku-1.4.0 exe/tansaku
tansaku-1.3.0 exe/tansaku