Sha256: baf7cd62b3420676249239383c9b1c75e2d73552a61370e5d12728a8d30c8793

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

module DeleteMyTweets
  require 'delete_my_tweets/config'
  require 'delete_my_tweets/version'
  require 'delete_my_tweets/twitter'

  class << self
    OPT_CONFIG = '--config'

    def cli
      puts "#{PROJECT} #{VERSION}"

      if ARGV.include? OPT_CONFIG
        config_create
        exit
      end

      if config_missing? CONFIG
        puts "config missing, type: #{PROJECT} #{OPT_CONFIG}"
        exit
      end

      c = config_get(CONFIG)

      twitter_delete(c) do |o|
        puts o
      end
      puts 'all done 🐤'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
delete_my_tweets-0.1.1 lib/delete_my_tweets/cli.rb
delete_my_tweets-0.1.0 lib/delete_my_tweets/cli.rb