aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-10 13:34:46 +0200
committerDaniel Mueller <deso@posteo.net>2020-09-12 14:12:04 -0700
commit33918c32b8de4250c450f8d0b007019913c440a1 (patch)
tree2fb69aaa8456066de582c300de6f240c085a5ee5 /src/tests
parentca737e96c7688cc214e9cb514b18861b4671651c (diff)
downloadnitrocli-33918c32b8de4250c450f8d0b007019913c440a1.tar.gz
nitrocli-33918c32b8de4250c450f8d0b007019913c440a1.tar.bz2
Add is_tty field to Context
This patch adds the is_tty field to the Context struct that indicates whether stdout is a TTY. This allows us to use TTY features like moving the cursor in our output.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/mod.rs b/src/tests/mod.rs
index e0a5b9a..1871f3c 100644
--- a/src/tests/mod.rs
+++ b/src/tests/mod.rs
@@ -99,6 +99,7 @@ impl Nitrocli {
let ctx = &mut crate::Context {
stdout: &mut stdout,
stderr: &mut stderr,
+ is_tty: false,
admin_pin: self.admin_pin.clone(),
user_pin: self.user_pin.clone(),
new_admin_pin: self.new_admin_pin.clone(),