aoctool : Advent of Code Downloader / Initializer - GitHub

文章推薦指數: 80 %
投票人數:10人

aoctool : Advent of Code Downloader / Initializer. The AOC tool is an opinionated and configurable utility for handling the repetitive parts of Advent of ... Skiptocontent {{message}} coriolinus / aoctool Public Notifications Fork 0 Star 0 Toolhandlinginitializationofayear'sAdventofCodepuzzles 0 stars 0 forks Star Notifications Code Issues 1 Pullrequests 0 Actions Projects 0 Security Insights More Code Issues Pullrequests Actions Projects Security Insights coriolinus/aoctool Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository. master Branches Tags Couldnotloadbranches Nothingtoshow {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default Atagalreadyexistswiththeprovidedbranchname.ManyGitcommandsacceptbothtagandbranchnames,socreatingthisbranchmaycauseunexpectedbehavior.Areyousureyouwanttocreatethisbranch? 1 branch 0 tags Code Clone HTTPS GitHubCLI UseGitorcheckoutwithSVNusingthewebURL. WorkfastwithourofficialCLI. Learnmore. OpenwithGitHubDesktop DownloadZIP LaunchingGitHubDesktop Ifnothinghappens,downloadGitHubDesktopandtryagain. LaunchingGitHubDesktop Ifnothinghappens,downloadGitHubDesktopandtryagain. LaunchingXcode Ifnothinghappens,downloadXcodeandtryagain. LaunchingVisualStudioCode Yourcodespacewillopenonceready. Therewasaproblempreparingyourcodespace,pleasetryagain. Latestcommit   Gitstats 29 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime day-template     src     .gitignore     Cargo.lock     Cargo.toml     README.md     Viewcode aoctool:AdventofCodeDownloader/Initializer Installation Initialsetup AnnualSetup Per-daytemplating SpecifyingtheTemplates README.md aoctool:AdventofCodeDownloader/Initializer TheAOCtoolisanopinionatedandconfigurableutilityforhandlingtherepetitivepartsof AdventofCodeinRust. It'sintendedtosynergizenicelywithmyaoclibsupportlibrary, butthereisnorequirementthatyourimplementationusethat. Theactualworkflowforday1of2021mightlooklikethis: $#Initializeanewworkspacefor2021 $aocinit-year--implementationadventofcode-2021&&cdadventofcode-2021 adventofcode-2021$#Setthesessionkey,acquiredfromthebrowser'scookies adventofcode-2021$aocconfigset--session"$SESSION" adventofcode-2021$#Initializeanewsub-cratecalledday01fromtemplates,anddownloadtheinputfile. adventofcode-2021$aocinit adventofcode-2021$#Fillintheday01/src/lib.rs:part1()functionbodyusingtheeditorofyourchoice.Then: adventofcode-2021$cargorun-pday01 adventofcode-2021$#Fillintheday01/src/lib.rs:part2()functionbodyusingtheeditorofyourchoice.Then: adventofcode-2021$cargorun-pday01----part2--no-part1 Foreachsubsequentday,theonlycommandrequiredisaocinit. Installation WindowsisonlysupportedviaWSL. cargoinstall--git"https://github.com/coriolinus/aoctool.git" Initialsetup LogintotheAoCsitewithwhatevermethodyouprefer.Thenusethebrowser'sdevtoolstoinspect thecookies.Youwanttheonecalledsession.Configurethistoolwithit,soitcandownloadthe inputsforyou. aocconfigset--session"$SESSION" AnnualSetup Ifdesired,initializeatop-levelworkspaceinthecurrentdirectorywith aocinit-year Thatsubcommandallowsforinlineconfigurationoftemplates,implementations,etconaper-year basis.Toexplorethoseoptions: aocinit-year--help Thepathstotheday'stemplatefiles,totheimplementationdirectory,andtotheinputfilescan allbeconfiguredonanannualbasis.Fordetails,see aocconfigset--help oredittheconfigurationdirectlywith open"$(aocconfigpath)" Per-daytemplating aocinit Withintheconfiguredyear(ifset)orinthecurrentdirectory,thiscommandwillcreateanew sub-crateandaddittotheworkspace,aswellasdownloadingtheproblem'sinput.Inputsaresaved toacanonicaldirectory.Thesub-cratewillbenamedforthedayinquestion,soitcanthenberun like cargorun-pday01----part2 SpecifyingtheTemplates Bydefault,eachday'sexercisewillbeinitializedwiththetemplatesstoredhere. However,thisbehaviorcanbecustomizedasdesired.Youcancustomizethedirectorywherethetemplatesarestoredwith aocconfigset--day-templates Thatpathmustbeadirectorycontainingthreefiles:Cargo.toml,src/lib.rs,andsrc/main.rs.Thosefilescancontainanythingyoulike. Thefollowingexpressionsareevaluatedwithinthetemplate:{year},{day},{package_name}. About Toolhandlinginitializationofayear'sAdventofCodepuzzles Topics rust hacktoberfest Resources Readme Stars 0 stars Watchers 1 watching Forks 0 forks Releases Noreleasespublished Packages0 Nopackagespublished Contributors2     Languages Rust 100.0% Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?