mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-30 07:33:59 +08:00
Move gateway management functions (gateway_status, gateway_info, gateway_add, gateway_select, gateway_login, gateway_logout, gateway_list, gateway_remove, gateway_use, gateway_info_not_configured) and their private helpers from run.rs into commands/gateway.rs. Add pub use re-exports in run.rs so main.rs call sites remain unchanged. Extract shared test utilities (EnvVarGuard, with_tmp_xdg) into a crate-level test_utils module to avoid duplication between gateway tests and the remaining run.rs tests. Part of #2304 (PR 2/6). Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
23 lines
564 B
Rust
23 lines
564 B
Rust
// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//! `OpenShell` CLI library.
|
|
//!
|
|
//! This crate provides the CLI implementation for `OpenShell`.
|
|
|
|
#[cfg(test)]
|
|
pub(crate) static TEST_ENV_LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(());
|
|
#[cfg(test)]
|
|
pub(crate) mod test_utils;
|
|
|
|
pub mod auth;
|
|
pub(crate) mod commands;
|
|
pub mod completers;
|
|
pub mod edge_tunnel;
|
|
pub mod oidc_auth;
|
|
pub mod output;
|
|
pub(crate) mod policy_update;
|
|
pub mod run;
|
|
pub mod ssh;
|
|
pub mod tls;
|