Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Running Cargo aoc -g doesn't generate new file #102

Open
R0mbertus opened this issue Nov 30, 2023 · 3 comments
Open

Running Cargo aoc -g doesn't generate new file #102

R0mbertus opened this issue Nov 30, 2023 · 3 comments

Comments

@R0mbertus
Copy link

As it currently stands, running cargo aoc -g to generate the file for the new day, without setting the day flag, either:

  • panics on "No implementation found" if there are no previous days implemented, as there aren't any days in target/aoc/completed.json;
  • does reach the if args.generate block if there are previous days implemented, but won't do anything as the files for that day have already been generated, as to be in target/aoc/completed.json, the files need to already have been made;
@oriongonza
Copy link
Contributor

cargo-aoc input generates the file though.

@R0mbertus
Copy link
Author

That indeed does work, thank you.

However, it doesn't take away from the fact that it's still broken. It seems like it could either just be removed in favor of promoting cargo aoc input -g, or the current day would need to be fetched for cargo aoc -g

@oriongonza
Copy link
Contributor

In this version it's been changed so that it only generates with -g

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants