diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-17 22:30:50 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-17 22:38:39 +0800 |
| commit | f27f5aeb09616b932ab48f0905994879dd8bafe5 (patch) | |
| tree | 2deea67f7ed910ad824fbcce2330ab5c475e51a0 /mling/src/cli/namespace_mgr.rs | |
| parent | bdd736ad9899aed74aaa2760c6e068dcae0e6925 (diff) | |
Rename `NextProcess` to `Next` across the codebase
Diffstat (limited to 'mling/src/cli/namespace_mgr.rs')
| -rw-r--r-- | mling/src/cli/namespace_mgr.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mling/src/cli/namespace_mgr.rs b/mling/src/cli/namespace_mgr.rs index 0f5a115..0f11332 100644 --- a/mling/src/cli/namespace_mgr.rs +++ b/mling/src/cli/namespace_mgr.rs @@ -79,7 +79,7 @@ pub(crate) fn comp_remove_namespace(ctx: &ShellContext) -> Suggest { } #[chain] -pub(crate) fn handle_set_trust(p: SetTrustNamespaceEntry) -> NextProcess { +pub(crate) fn handle_set_trust(p: SetTrustNamespaceEntry) -> Next { let (trusted, namespace) = route!( Picker::new(p.inner) .pick::<Yes>(["-t", "--trusted"]) @@ -91,7 +91,7 @@ pub(crate) fn handle_set_trust(p: SetTrustNamespaceEntry) -> NextProcess { } #[chain] -pub(crate) fn handle_trust(p: TrustNamespaceEntry) -> NextProcess { +pub(crate) fn handle_trust(p: TrustNamespaceEntry) -> Next { SetTrustNamespaceEntry::new({ let mut args = p.inner.clone(); args.extend(vec!["-t".to_string(), "yes".to_string()]); @@ -100,7 +100,7 @@ pub(crate) fn handle_trust(p: TrustNamespaceEntry) -> NextProcess { } #[chain] -pub(crate) fn handle_untrust(p: UntrustNamespaceEntry) -> NextProcess { +pub(crate) fn handle_untrust(p: UntrustNamespaceEntry) -> Next { SetTrustNamespaceEntry::new({ let mut args = p.inner.clone(); args.extend(vec!["-t".to_string(), "no".to_string()]); @@ -109,7 +109,7 @@ pub(crate) fn handle_untrust(p: UntrustNamespaceEntry) -> NextProcess { } #[chain] -pub(crate) fn handle_remove_namespace(p: RemoveNamespaceEntry) -> NextProcess { +pub(crate) fn handle_remove_namespace(p: RemoveNamespaceEntry) -> Next { let namespace = route!( Picker::new(p.inner) .pick_or_route((), ErrorNamespaceNotProvided::default().to_render()) |
