Created
April 18, 2023 16:20
-
-
Save trueheart78/638cb5d083f38e4756b28774c9f69162 to your computer and use it in GitHub Desktop.
Revisions
-
trueheart78 created this gist
Apr 18, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ #!/usr/bin/env ruby require "colorize" def wow_name(string) fits = string.size <= 12 if fits "=> \"#{string.downcase.capitalize}\" fits and would make a great name! ✅".green else # cutoff = string[0...12] "=> \"#{string.downcase.capitalize}\" does not fit (#{string.size - 12} over). ❌".red end end if ARGV.none? puts "Error: Missing Branch Details".red exit 1 end puts wow_name(ARGV.first)