Sha256: 58daad3d8f4e52f14b4439d2b37f593fc231fbff1fbe8b47ccdb0202c256bcbe

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/nin'

config = {
  integration_client: ENV['NIN_INTEGRATION_CLIENT'],
  integration_client_token: ENV['NIN_INTEGRATION_CLIENT_TOKEN'],
  integration_timeout_interval: ENV['NIN_INTEGRATION_TIMEOUT']
}

begin
  Nin::Command.new(ARGV[0], ARGV[1..-1], config).call
rescue Nin::ItemNotFoundError
  puts "Todo item does not exist"
rescue Nin::EmptyCommandArgumentError
  puts "Command argument cannot be empty\nRun nin to view the USAGE message"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nin-1.3.0 bin/nin