Files
openclaw/src/secrets/config-io.ts

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,
});
}