diff --git a/cli/commands.go b/cli/commands.go index 6cf9013..8c7a818 100644 --- a/cli/commands.go +++ b/cli/commands.go @@ -16,6 +16,7 @@ func registerEscapeHatches(app *kit.App) { app.AddCommand(newDownloadCmd()) app.AddCommand(newExtractCmd()) app.AddCommand(newMusicCmd()) + app.AddCommand(newDiscoverCmd()) app.AddCommand(newSeedCmd()) app.AddCommand(newCrawlCmd()) app.AddCommand(newQueueCmd()) diff --git a/cli/discover.go b/cli/discover.go new file mode 100644 index 0000000..5e1beba --- /dev/null +++ b/cli/discover.go @@ -0,0 +1,145 @@ +package cli + +import ( + "context" + + "github.com/tamnd/any-cli/kit" + "github.com/tamnd/ytb-cli/youtube" +) + +// defaultDiscoverBudget caps a streaming walk when the user did not pass -n, so +// `ytb discover