From c3d620ff972d45ea3f8d28c587000eb4375d5490 Mon Sep 17 00:00:00 2001 From: itowlson Date: Thu, 21 Aug 2025 10:25:39 +1200 Subject: [PATCH] Document @file syntax for `sqlite execute` Signed-off-by: itowlson --- src/commands/sqlite.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/sqlite.rs b/src/commands/sqlite.rs index e2c378b..e0e000c 100644 --- a/src/commands/sqlite.rs +++ b/src/commands/sqlite.rs @@ -65,8 +65,9 @@ pub struct ExecuteCommand { #[clap(name = "APP", short = 'a', long = "app", value_parser = clap::builder::ValueParser::new(disallow_empty), requires = "LABEL", conflicts_with = "DATABASE")] app: Option, - ///Statement to execute - #[clap(value_parser = clap::builder::ValueParser::new(disallow_empty))] + /// The SQLite statement to run against the database. + /// To run from a file, prefix the filename with @ e.g. spin cloud sqlite execute @migration.sql + #[clap(name = "SQL", value_parser = clap::builder::ValueParser::new(disallow_empty))] statement: String, #[clap(flatten)]