diff --git a/lib/mastodon/cli/main.rb b/lib/mastodon/cli/main.rb index 1594eadce8..6af4284cb0 100644 --- a/lib/mastodon/cli/main.rb +++ b/lib/mastodon/cli/main.rb @@ -12,6 +12,7 @@ require_relative 'feeds' require_relative 'ip_blocks' require_relative 'maintenance' require_relative 'media' +require_relative 'ohagi' require_relative 'preview_cards' require_relative 'search' require_relative 'settings' @@ -65,6 +66,9 @@ module Mastodon::CLI desc 'maintenance SUBCOMMAND ...ARGS', 'Various maintenance utilities' subcommand 'maintenance', Maintenance + desc 'ohagi SUBCOMMAND ...ARGS', 'Ohagis' + subcommand 'ohagi', Ohagi + option :dry_run, type: :boolean desc 'self-destruct', 'Erase the server from the federation' long_desc <<~LONG_DESC diff --git a/lib/mastodon/cli/ohagi.rb b/lib/mastodon/cli/ohagi.rb new file mode 100644 index 0000000000..28c6c41953 --- /dev/null +++ b/lib/mastodon/cli/ohagi.rb @@ -0,0 +1,33 @@ +# frozen_string_literal: true + +require 'concurrent' +require_relative 'base' + +module Mastodon::CLI + class Ohagi < Base + desc 'good', 'Ohagi is good' + def good + say('Thanks!', :green) + end + + desc 'bad', 'Ohagi is bad' + def bad + say('Sorry...', :red) + end + + desc 'tsubuan', 'Ohagi is tsubuan' + def tsubuan + say('Thanks! You are knight in shining armor!', :green) + end + + desc 'koshian', 'Ohagi is koshian' + def koshian + say('Let the WAR begin.', :red) + end + + desc 'kokuraan', 'Ohagi is kokuraan' + def kokuraan + say('I hate you.', :yellow) + end + end +end