Skip to main content

cli_shared/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2//! Shared Heddle CLI configuration and credential-file contracts.
3//!
4//! This crate contains transport configuration inputs and the durable global
5//! credential-store schema used by both the Heddle CLI and operator tooling.
6//! Transport implementations and application policy remain in their callers.
7
8pub mod client_config;
9pub mod config;
10pub mod credentials;
11pub mod logging;
12pub mod output;
13pub mod remote;
14
15pub use client_config::{
16    ClientConfig, cleartext_connect_allowed, cleartext_refused_message, is_loopback_ip,
17};
18pub use config::{ResolvedPrincipal, UserConfig, principal_source_display, resolve_principal};
19pub use logging::{
20    LogFormat, LoggingConfig, LoggingGuard, init_logging, init_logging_default, is_enabled,
21};
22pub use output::OutputMode;
23pub use remote::{
24    Remote, RemoteConfig, RemoteTarget, remote_allows_insecure, resolve_remote_with_key,
25    resolve_remote_with_key_and_insecure,
26};