Skip to content

tjsmart/slh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Santa's Little Helper

                 ######%##**####*######*##                                                          
               #%*+++*%*+++++++*%*+++++++*%*                                                        
              *%++*%#++++++++++*#+*++++++++%                                                        
             *%++*####*+++*#**++###%#++++++%+                                                       
             #*+*+:...:+#=:..:-*++++**+++++%=                                                       
             ##*#.-:. .*.. ..:..#++++#*+++*#                                                        
               =*.=-...*....+*..#+++++%***%                                                         
                *%-..:+%=......+*+++++%++                                                           
               ##++++++++*#**#*++++++*%                                                             
    %#      +#%*+++++++++++++++++++++#*                                                             
  #%@%%%##%#**+++++++++++++++++++++++%                                                              
  %@@@@@#++++++++++++++++++++++++++++#                                                              
  *%%@@%*++++++++++++++++++++++++++++#*                                                             
      ##*++++++++++++*#%%###*+++++++++#                                                             
         *#%%%%%%%%**  ##+++++++++++++#*                                                            
                        +##++++++++++++#                                                            
                          *#+++++++++++*%                                                           
                           #++++++++++++*#                                                          
                           #+++++++++++++*#                                                         
                          *#++++++++++++++*#                                                        
                          #*++++++++++++++++%+                                                      
                         +%++++++++++++++++++##                                                     
                         #*+++++++++++++++++++*#*                                                   
                         #++++++++++++++++++++++*%#                                                 
                        :#++++++++++++++++++++++++#%*                                               
                        :#++++++++++++++++++++++++++###                                             
                         %++++++++++++++++++++++++++++#%                                            
                         *#+++++#+++++++++++++++++++++++*%+                                         
                         ##*+++*#+++++++++*+*+++++++++++++*##                                       
                         %+*#+++#+++++++++##*+++++++++++++++*##                                     
                         #*++#*+%+++++++++**++**++++++++++++++*##                                   
                         **+++*##*+++++++++%*%*+++++++*%%%%%#*++*##                                 
                         =#++++++%+++++++++**++*%+++%#++++++++*%++##                                
                          #*+++++*#+++++++++#++++++#*+++++++++++*#++#*                              
                          *%++++++%*+++++++++%#*##*#++++++++++++++#*+##                             
                           #++++++###++++++++*###+#*+++++++++++++++#*+##                            
                           #++++++*##%*+++++++%**+**++++++++++++++++#++##                           
                          *#++++++#* =#++++++*###++#+++++++++++++++++*++#*                          
                          +#+++++##   #++++++#**#++#++++++++++++++++++++*#                          
                          *#+++++%    %*+++++%  #++*#++++++++++++++++++++#+                         
                          #*++++##    %*++++##  ##++**+++++++++**++++++++**                         
                          %++++*%     ##++++%+   #+++#*++++++++*#++++++++*#                         
                         +#++++#*     *#+++*#    *#+++#*++++++++%++++++++*#                         
                         ##+++*%      +#+++##     *#+++*#+++++++*#+++++++##                         
                         #*+++#*      *#+++%=      +#++++%+++++++#*++++++%+                         
                         %++++%       ##++*%        +#*+++*#++++++#*++++#**#%#=                     
                        *#+++##      #%*++*#+*   =*#%##+++++#*+++++#*++#*+++++***###%%#%%%##**      
                       *%*+++%     *#*#*++#********++++++++**%#+++++*##%#****+++++++++++++++***#%   
                    ###**+++##     *#*%+++%*###***#############++++++#%    *##%#%%%%%####%%#**++*#  
                   *#++++++%#        *#+++%     ##*########*+++++++*#%+                      *#++#  
                    ###*##%*      *#%%*++%#    ##+++++++++*######*                        *#%#+*%*  
                                 #*+++++%*     *%#######*#                     *#%%%%%%##***####    
                                 %#****##        #*#*                              ####%%%###       
                                  *#%##

Scripts for Advent of Code.

Installation

SLH is probably easiest to install with pipx.

$ pipx install git+https://github.com/tjsmart/slh

Config

SLH is configured via a configuration file which should be in the current working directory with the name ./.slh-config.json.

Example file contents:

{
  "language": "c"
}
field required type description
language yes string programming language, case-insentive, examples: "c", "python"

Next

This is the first command you will want to run. It will create src files, download prompts, input and other stuff. Works with a new project, just need to specify a minimal config.

$ slh next --help
usage: slh next [-h]

Generate files for next day/part.

options:
  -h, --help  show this help message and exit

Run

This is the second command you will want to run. It will run the provided day/part puzzle. By default this will run the latest created puzzle.

$ slh run --help
usage: slh run [-h] [--all] [--days DAYS] [--parts PARTS] [--test] [--count COUNT]

Execute specified solutions, by default the most recent solution is executed.

options:
  -h, --help     show this help message and exit
  --all
  --days DAYS
  --parts PARTS
  --test
  --count COUNT

Submit

This is the final command you will want to run. It will submit the provided day/part puzzle.

$ slh submit --help
usage: slh submit [-h]

Submit the specified solutions, by default the most recent solution is submitted.

options:
  -h, --help  show this help message and exit

About

Santa's Little Helper for https://adventofcode.com

Topics

Resources

Stars

Watchers

Forks