summaryrefslogtreecommitdiffstats
path: root/sq
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2021-01-15 11:36:47 +0100
committerJustus Winter <justus@sequoia-pgp.org>2021-01-15 11:36:47 +0100
commitef57e7fba4a20183daa6d02993920adf0d66c8eb (patch)
treeb83b4a89689faf85693b2bb4426c208b70d01342 /sq
parentcf2396f57b61052fbc51a030b846e0e98f35a586 (diff)
sq: Warn about the CLI interface not being stable.
Diffstat (limited to 'sq')
-rw-r--r--sq/src/sq.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/sq/src/sq.rs b/sq/src/sq.rs
index eef1e6dc..3a97bee0 100644
--- a/sq/src/sq.rs
+++ b/sq/src/sq.rs
@@ -237,6 +237,11 @@ pub struct Config {
}
fn main() -> Result<()> {
+ if term_size::dimensions_stdout().is_none() {
+ eprintln!("\nWARNING: sq does not have a stable CLI interface. \
+ Use with caution in scripts.\n");
+ }
+
let policy = &mut P::new();
let matches = sq_cli::build().get_matches();