From 65a02d09e9f4ecb2b34aa9ba8ed313b4501f9a44 Mon Sep 17 00:00:00 2001 From: Greg Woods Date: Sat, 2 Dec 2023 01:00:10 -0500 Subject: [PATCH] Readme stuff --- README.md | 6 ++++++ Rakefile | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd37a57..b8fa8e1 100644 --- a/README.md +++ b/README.md @@ -24,4 +24,10 @@ rake test # run a specific test ruby ./test/07_test.rb + +# scaffold a day +rake scaffold:1 + +# download test input +rake download:1 ``` diff --git a/Rakefile b/Rakefile index 7e4345f..636b699 100644 --- a/Rakefile +++ b/Rakefile @@ -43,7 +43,10 @@ namespace :download do def download_input(number) session_path = File.join(APP_ROOT, '.session') - return '' unless File.exist?(session_path) + + unless File.exist?(session_path) + raise 'Copy your session cookie from a logged-in browser and save it to a file at `.session`!' + end puts "⬇️ Download day #{number} input"