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

Adding a flag for PuzzlePart in read subcommand #27

Open
tyrone-wu opened this issue Dec 1, 2024 · 0 comments · May be fixed by #28
Open

Adding a flag for PuzzlePart in read subcommand #27

tyrone-wu opened this issue Dec 1, 2024 · 0 comments · May be fixed by #28

Comments

@tyrone-wu
Copy link

Hi. 👋
Awesome cli! ⭐

Would you be interested in a PR that adds a cli flag that specifies the part/level for a puzzle for the read subcommand?

There is a request for this in fspoettel/advent-of-code-rust#50, so I was wondering if it would make sense for this feature to be added in here.

@tyrone-wu tyrone-wu changed the title Adding a flag for PuzzlePart Adding a flag for PuzzlePart in read subcommand Dec 1, 2024
tyrone-wu added a commit to tyrone-wu/aoc-cli that referenced this issue Dec 1, 2024
Add a `--part` flag in the `read` subcommand to display/read the
specified part of the puzzle.

Fixes: scarvalhojr#27
tyrone-wu added a commit to tyrone-wu/aoc-cli that referenced this issue Dec 1, 2024
Add a `--part` flag in the `read` subcommand to display/read the
specified part of the puzzle.

When part 1 is included in display (either by directly specifying
`--part 1`, or by not specifying `--part` flag which defaults to both
part 1 & 2), the `--- Part One ---` subheader is added in the output.
This makes display consistent with the output for part 2
(`--- Part Two ---`, which is included by default), and adds better
indicator for the puzzle sections.

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

Successfully merging a pull request may close this issue.

1 participant