You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update version
* Update changelog
* Update readme with chrome instructions for accessing the session cookie
* Update readme with command help examples
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
7
## [Unreleased]
8
+
- No unreleased changes!
9
+
10
+
## [0.2.7]
8
11
### Added
9
12
- Version command, which outputs the installed version of the gem ([#30](https://github.com/pacso/aoc_rb/pull/30) by [@pacso](https://github.com/pacso))
10
13
@@ -63,7 +66,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Copy file name to clipboardExpand all lines: README.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,17 +29,36 @@ Before running any commands, you must set up your `AOC_COOKIE` environment varia
29
29
$ cp .env-template .env
30
30
31
31
You'll need to log in to the [Advent of Code](https://adventofcode.com) website and then grab a copy of your session key from your cookies.
32
-
In Chrome you can do this via [chrome settings](chrome://settings/cookies/detail?site=adventofcode.com) by entering `chrome://settings/cookies/detail?site=adventofcode.com` in your address bar. Just click on `session` and copy your key from the `Content` section.
32
+
In Chrome you can do this by opening the `Developer Tools` window (`⌥ ⌘ I` on Mac) when browsing the Advent of Code website. Within the `Application` tab, expand `Cookies` under `Storage` in the side menu and select `https://adventofcode.com`. This will then show you all of the cookies set by the website. You need to select the `session` cookie and copy the value.
33
33
34
34
Now edit the new `.env` file, so that it looks like the following, replacing `ABCDE12345` with the session key you just copied:
35
35
36
36
AOC_COOKIE=ABCDE12345
37
37
38
38
You're now able to run all the `aoc` commands provided by this gem.
39
39
40
-
You'll see you have a few options when running the `aoc` command within your project.
40
+
You'll see you have a few options when running the `aoc` command within your project. Running `aoc help` will show you all of your options:
41
+
42
+
$ aoc help
43
+
Commands:
44
+
aoc exec # executes and optionally submits the puzzle for today, or the specified date
45
+
aoc help [COMMAND] # Describe available commands or one specific command
46
+
aoc output # outputs results from your solution for the given day
47
+
aoc prep # preps everything you need for a new puzzle
48
+
aoc spec # runs tests for today, or the specified date
49
+
aoc version # prints the current installed version of AocRb
50
+
51
+
If you want to see you options for a given command:
52
+
53
+
$ aoc help prep
54
+
Usage:
55
+
aoc prep
56
+
57
+
Options:
58
+
-y, [--year=N]
59
+
-d, [--day=N]
41
60
42
-
`prep` will set everything up for a new daily puzzle. It defaults to the puzzle for today, but you can work with older puzzles by passing the year and day:
61
+
Running `aoc prep` will set everything up for a new daily puzzle. It defaults to the puzzle for today, but you can work with older puzzles by passing the year and day:
0 commit comments