Home

Awesome

Advent of Code 2023

GitHub last commit (branch) GitHub Workflow Status (with event) star count test count


                                                 
                                                 
                                                 
                        *                          13 
                                                 
        *                                          12 
                                                 
      *                                            11 
            *                                      10 
                                                 
               *                                    9 
                    *                               8 
                                                 
                  *            .   '    '  .        7 
                                  *                 6 
                         '                     ' 
                                  ~        *        5 
                 ...'''''          .''.~        '
              .''          .   ~..'*   '. ~  .      4 *
            .'               '''../......'''     
            :             /\    -/  :            
            '.            -   - /  .'            
              '..    -     -   *..'                 3 **
    ----@        '''..*......'''                    2 **
  * ! /^\                                           1 **

Prerequisites

cargo install nushell # https://github.com/nushell/nushell
cargo install aoc-cli # https://github.com/scarvalhojr/aoc-cli
vim ~/.adventofcode.session # https://github.com/scarvalhojr/aoc-cli?tab=readme-ov-file#session-cookie-

Usage

<details> <summary> nu -c 'use ci; ci debug day' </summary>
Debugs the given day

Usage:
  > debug day <day> 

Flags:
  -h, --help - Display the help message for this command

Parameters:
  day <string>: 

Input/output types:
  ╭───┬───────┬────────╮
  │ # │ input │ output │
  ├───┼───────┼────────┤
  │ 0 │ any   │ any    │
  ╰───┴───────┴────────╯


</details> <details> <summary> nu -c 'use ci; ci pull puzzle' </summary>
Download the puzzle input and description

Usage:
  > pull puzzle (day) 

Flags:
  -h, --help - Display the help message for this command

Parameters:
  day <string>:  (optional)

Input/output types:
  ╭───┬───────┬────────╮
  │ # │ input │ output │
  ├───┼───────┼────────┤
  │ 0 │ any   │ any    │
  ╰───┴───────┴────────╯


</details> <details> <summary> nu -c 'use ci; ci run puzzle' </summary>
Run a puzzle solver

Usage:
  > run puzzle (day) 

Flags:
  -h, --help - Display the help message for this command

Parameters:
  day <string>:  (optional)

Input/output types:
  ╭───┬───────┬────────╮
  │ # │ input │ output │
  ├───┼───────┼────────┤
  │ 0 │ any   │ any    │
  ╰───┴───────┴────────╯


</details> <details> <summary> nu -c 'use ci; ci submit answer' </summary>
Submit an answer to a puzzle

Usage:
  > submit answer (day) 

Flags:
  -h, --help - Display the help message for this command

Parameters:
  day <string>:  (optional)

Input/output types:
  ╭───┬───────┬────────╮
  │ # │ input │ output │
  ├───┼───────┼────────┤
  │ 0 │ any   │ any    │
  ╰───┴───────┴────────╯


</details> <details> <summary> nu -c 'use ci; ci test' </summary>
Runs all the unit tests

Usage:
  > test 

Subcommands:
  test day - Runs all the unit tests for a single day

Flags:
  -h, --help - Display the help message for this command

Input/output types:
  ╭───┬───────┬────────╮
  │ # │ input │ output │
  ├───┼───────┼────────┤
  │ 0 │ any   │ any    │
  ╰───┴───────┴────────╯


</details> <details> <summary> nu -c 'use ci; ci test day' </summary>
Runs all the unit tests for a single day

Usage:
  > test day <day> 

Flags:
  -h, --help - Display the help message for this command

Parameters:
  day <string>: 

Input/output types:
  ╭───┬───────┬────────╮
  │ # │ input │ output │
  ├───┼───────┼────────┤
  │ 0 │ any   │ any    │
  ╰───┴───────┴────────╯


</details> <details> <summary> nu -c 'use ci; ci update readme' </summary>
Recalculate the README

Usage:
  > update readme 

Flags:
  -h, --help - Display the help message for this command

Input/output types:
  ╭───┬───────┬────────╮
  │ # │ input │ output │
  ├───┼───────┼────────┤
  │ 0 │ any   │ any    │
  ╰───┴───────┴────────╯


</details>

Nushell v0.87.1: Lessons Learned