Skip to content

Feature/get command#77

Open
AnAngryBrit wants to merge 4 commits intogvellut:masterfrom
AnAngryBrit:feature/get-command
Open

Feature/get command#77
AnAngryBrit wants to merge 4 commits intogvellut:masterfrom
AnAngryBrit:feature/get-command

Conversation

@AnAngryBrit
Copy link
Copy Markdown
Contributor

Since everything I use jncep for is pretty much automated through calling jncep update on a schedule, I wanted to simplify the command line usage.

reliably the only command I have run as of late are jncep track add , followed by jncep epub

This pull request creates a new base command called get that essentially chains the track add and epub functions into one command.

old:
jncep track add https://j-novel.club/series/tearmoon-empire
jncep epub https://j-novel.club/series/tearmoon-empire

new:
jncep get https://j-novel.club/series/tearmoon-empire

I have been using this for a few months now, thought I would offer up the pull request if you were interested.

AnAngryBrit

This commit introduces a new 'get' command that simplifies the common workflow of tracking a new series and immediately generating an EPUB for it. The 'get' command is a shortcut for 'track add' followed by 'epub'.

The following changes are included:
- A new 'get' command is added to the CLI.
- The README is updated to document the new command.
- The core logic for resolving series from a URL or index is refactored into a new function.
- The 'epub' and 'track' commands are updated to use the new refactored function.
- A new test is added for the 'get' command.
The 'get' command was passing the namegen_rules string directly to EpubGenerationOptions, which expected a NameGenerator object. This caused a crash when the 'generate' method was called.

This commit fixes the issue by instantiating the NameGenerator from the namegen_rules, similar to how it's handled in the 'epub' command.
@gvellut
Copy link
Copy Markdown
Owner

gvellut commented Jan 4, 2026

Thank you for your PR. I will have a look at it to merge this week but it is fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants