aboutsummaryrefslogtreecommitdiff
path: root/src/arg_util.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-08-23 16:17:42 +0200
committerDaniel Mueller <deso@posteo.net>2021-01-10 17:37:53 -0800
commit4f37ab793f2a094ce24e010c06d9c71ab95873a7 (patch)
tree2baf7538c67a6b0142fc8daf31363e0f818a490e /src/arg_util.rs
parentac19dd1b91ee29bf67c44503c99297483df5c374 (diff)
downloadnitrocli-4f37ab793f2a094ce24e010c06d9c71ab95873a7.tar.gz
nitrocli-4f37ab793f2a094ce24e010c06d9c71ab95873a7.tar.bz2
Merge ExecCtx and RunCtx into Context
Since we moved the model, no_cache and verbosity fields from ExecCtx into Config and added a Config field to both ExecCtx and RunCtx, RunCtx and ExecCtx are identical. Therefore this patch merges the ExecCtx and RunCtx structs into the new Context struct.
Diffstat (limited to 'src/arg_util.rs')
-rw-r--r--src/arg_util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arg_util.rs b/src/arg_util.rs
index be361c7..d4ffa74 100644
--- a/src/arg_util.rs
+++ b/src/arg_util.rs
@@ -49,7 +49,7 @@ macro_rules! Command {
impl $name {
pub fn execute(
self,
- ctx: &mut crate::ExecCtx<'_>,
+ ctx: &mut crate::Context<'_>,
) -> anyhow::Result<()> {
match self {
$(