Sha256: d71f3106a2d0782551aca586d5a32652cb2cc646d461e4eae4a99bd822ff69d0

Contents?: true

Size: 642 Bytes

Versions: 1

Compression:

Stored size: 642 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 = Fund::Config.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 \"#{Fund::Config::Local::FILE_NAME}\" in your home directory".green if config.demo?
    sleep options.tick
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capwatch-0.2.4 exe/capwatch