Skip to content

Commit

Permalink
Readme stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
gregawoods committed Dec 2, 2023
1 parent a53ebb9 commit 65a02d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 65a02d0

Please sign in to comment.