#!/usr/bin/env ruby require 'bundler/setup' Bundler.require(:default) require 'mastodon' require 'highline/import' require 'oauth2' require 'dotenv' require 'pp' DEFAULT_APP_NAME = "mastodon-cli-sample" DEFAULT_MASTODON_URL = 'https://mstdn.jp' FULL_ACCESS_SCOPES = "read write follow" Dotenv.load if !ENV["MASTODON_URL"] ENV["MASTODON_URL"] = ask("Instance URL: "){|q| q.default = DEFAULT_MASTODON_U