Delete feed.rs and remove the "feed" subcommand from rockskyd CLI, remove rocksky-feed from the workspace Cargo.toml, and update Cargo.lock to drop the crate and its transitive dependencies.
···36 Command::new("pull")
37 .about("Pull data from a remote PostgreSQL database to your local PostgresSQL instance")
38 .long_about("Pull data from a remote PostgreSQL database to your local PostgresSQL instance. Ensure that the SOURCE_POSTGRES_URL environment variable is set to your remote PostgreSQL connection string."))
39- .subcommand(
40- Command::new("feed")
41- .about("Feed related commands")
42- .subcommand(
43- Command::new("serve")
44- .arg(arg!(--sync "Enable sync mode").required(false))
45- .about("Serve the Rocksky Feed API"),
46- )
47- .subcommand(Command::new("sync").about("Sync scrobbles feed data to DuckDB")),
48- )
49}
5051#[tokio::main]
···102 Some(("pull", _)) => {
103 cmd::pull::pull_data().await?;
104 }
105- Some(("feed", sub_m)) => match sub_m.subcommand() {
106- Some(("serve", args)) => {
107- let enable_sync = args.get_flag("sync");
108- cmd::feed::serve(enable_sync).await?
109- }
110- Some(("sync", _)) => cmd::feed::sync().await?,
111- _ => println!("Unknown feed command"),
112- },
113 _ => {
114 println!("No valid subcommand was used. Use --help to see available commands.");
115 }
···36 Command::new("pull")
37 .about("Pull data from a remote PostgreSQL database to your local PostgresSQL instance")
38 .long_about("Pull data from a remote PostgreSQL database to your local PostgresSQL instance. Ensure that the SOURCE_POSTGRES_URL environment variable is set to your remote PostgreSQL connection string."))
000000000039}
4041#[tokio::main]
···92 Some(("pull", _)) => {
93 cmd::pull::pull_data().await?;
94 }
0000000095 _ => {
96 println!("No valid subcommand was used. Use --help to see available commands.");
97 }