Add some documentation to the CLI and the csv ingestion route
Build and Publish Docker Container / build (push) Has been cancelled
Build and Publish Docker Container / build (push) Has been cancelled
This commit is contained in:
+6
-2
@@ -18,6 +18,7 @@ use tracing::log::LevelFilter;
|
||||
|
||||
#[derive(Debug, Subcommand)]
|
||||
enum Commands {
|
||||
/// Manually run database migrations.
|
||||
Migrate {
|
||||
/// Number of migration steps to perform. If not provided, all migrations will be run.
|
||||
#[arg(long)]
|
||||
@@ -28,8 +29,9 @@ enum Commands {
|
||||
down: bool,
|
||||
},
|
||||
|
||||
/// Start web app for to the google-sheets app script
|
||||
Serve {
|
||||
/// If we should perform migration on startup.
|
||||
/// If we should perform migration at startup.
|
||||
#[clap(short, long, env, default_value_t = true)]
|
||||
migrate: bool,
|
||||
|
||||
@@ -38,12 +40,14 @@ enum Commands {
|
||||
addr: SocketAddr,
|
||||
},
|
||||
|
||||
/// Ingest a google-sheets CSV export into the database.
|
||||
Csv {
|
||||
/// The path to the CSV file to ingest.
|
||||
/// The path of the CSV file to ingest.
|
||||
csv_file: PathBuf,
|
||||
},
|
||||
}
|
||||
|
||||
/// Ingest and manage monzo transactions from the Monzo Plus auto-export feature
|
||||
#[derive(Debug, clap::Parser)]
|
||||
struct Cli {
|
||||
/// URL to PostgreSQL database.
|
||||
|
||||
Reference in New Issue
Block a user