Sha256: bd3bca1d93908d6187591754f85e7ad7ed60812d0e1d0eb010127407e003e698

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 Bytes

Contents

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

require "bundler/setup"
require "capwatch"
include Capwatch

options = CLI.parse(ARGV)

trap("SIGINT") {
  system("clear")
  exit 130
}

if options.telegram
  Telegram.new(options.telegram).start
else
  loop do
    config = FundConfig.new
    provider = Providers::CoinMarketCap.new
    fund = Fund.new(provider: provider, config: config)
    system("clear")
    puts fund.console_table
    puts "\nHey there! This is a Demo Fund. Please set up your fund by editing the \"#{FundConfig::DEMO_CONFIG_FILE}\" in your home directory".green if config.demo?
    sleep options.tick
  end
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capwatch-0.2.3 exe/capwatch
capwatch-0.2.0 exe/capwatch