mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-16 12:30:49 +00:00
15 lines
392 B
TypeScript
15 lines
392 B
TypeScript
import { createConfigIO } from "../config/config.js";
|
|
|
|
const silentConfigIoLogger = {
|
|
error: () => {},
|
|
warn: () => {},
|
|
} as const;
|
|
|
|
export function createSecretsConfigIO(params: { env: NodeJS.ProcessEnv }) {
|
|
// Secrets command output is owned by the CLI command so --json stays machine-parseable.
|
|
return createConfigIO({
|
|
env: params.env,
|
|
logger: silentConfigIoLogger,
|
|
});
|
|
}
|