basis 0.12.0

The basis SDK: workspace discovery, run lifecycle, one event stream, and the two seams. No protocol, no transport, no TTY.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Shared debug redaction for environment-shaped secrets.

use std::collections::BTreeMap;

/// Keeps variable names while replacing every value with one fixed marker.
pub(crate) fn redacted_env<K>(names: impl IntoIterator<Item = K>) -> BTreeMap<K, &'static str>
where
    K: Ord,
{
    names.into_iter().map(|name| (name, "<redacted>")).collect()
}