Skip to content

[FEATURE] inspect subcommand - #1407

Merged
jmbannon merged 22 commits into
masterfrom
j/inspect
Apr 13, 2026
Merged

[FEATURE] inspect subcommand#1407
jmbannon merged 22 commits into
masterfrom
j/inspect

Conversation

@jmbannon

@jmbannon jmbannon commented Jan 1, 2026

Copy link
Copy Markdown
Owner

Subscription file syntax is designed to minimize boiler-plate when authoring new subscriptions.
You can now unpack any subscription using the inspect sub-command to see its boiler-plate preset format.

ytdl-sub inspect --config /path/to/config.yaml --match "BBC News" /path/to/subscriptions.yaml

This can be utilized for numerous purposes including:

  • Ensuring your custom preset is getting applied correctly.
  • Figuring out which variables set things like file names, metadata, etc.
  • Understanding how subscription syntax translates to preset representation.

The default --level of inspect will fill in defined variables. Using --level original will present the subscription's raw layout with no fill.

@codecov

codecov Bot commented Jan 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.28571% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.35%. Comparing base (e34b9b6) to head (3ef0c9d).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
src/ytdl_sub/cli/entrypoint.py 69.56% 7 Missing ⚠️
.../ytdl_sub/config/validators/variable_validation.py 90.00% 3 Missing ⚠️
src/ytdl_sub/main.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1407      +/-   ##
==========================================
- Coverage   92.44%   92.35%   -0.10%     
==========================================
  Files         117      117              
  Lines        7681     7734      +53     
==========================================
+ Hits         7101     7143      +42     
- Misses        580      591      +11     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jmbannon
jmbannon merged commit 970c74b into master Apr 13, 2026
34 checks passed
@jmbannon
jmbannon deleted the j/inspect branch April 13, 2026 17:11
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.

1 participant