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>2020-09-03 08:43:05 -0700
commit0cb2ac01371523eae785c12ce88848039090c1e6 (patch)
treee7dfe97cc4bc709cee9fc977f2fae594f3bf0cfb /src/arg_util.rs
parentd180a0d828d46d7672031acbbd7a6f31bf5bf171 (diff)
downloadnitrocli-0cb2ac01371523eae785c12ce88848039090c1e6.tar.gz
nitrocli-0cb2ac01371523eae785c12ce88848039090c1e6.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 {
$(