Last active
July 23, 2021 18:25
-
-
Save trueheart78/8900a350f723e3d64a278ea46de4072b to your computer and use it in GitHub Desktop.
Simple reminder script to flood the terminal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'colorize' | |
end | |
# String.color_samples | |
unless ARGV.any? | |
puts 'Error: missing reminder string 😢'.red | |
exit 1 | |
end | |
# Joins every argument passed in so that quotes aren't required | |
reminder = ARGV.join(' ') | |
100.times do | |
puts ['--> Reminder: '.light_blue, reminder.green, ' <--'.light_blue].join | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment