mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 02:40:39 +09:00
cli: add quickstart onboarding flow and config-scoped jwt env handling
This commit is contained in:
parent
5c07bdafc5
commit
3248974435
9 changed files with 277 additions and 115 deletions
|
|
@ -110,8 +110,8 @@ export async function envCommand(opts: { config?: string }): Promise<void> {
|
|||
}
|
||||
|
||||
function collectDeploymentEnvRows(config: PaperclipConfig | null, configPath: string): EnvVarRow[] {
|
||||
const agentJwtEnvFile = resolveAgentJwtEnvFile();
|
||||
const jwtEnv = readAgentJwtSecretFromEnv();
|
||||
const agentJwtEnvFile = resolveAgentJwtEnvFile(configPath);
|
||||
const jwtEnv = readAgentJwtSecretFromEnv(configPath);
|
||||
const jwtFile = jwtEnv ? null : readAgentJwtSecretFromEnvFile(agentJwtEnvFile);
|
||||
const jwtSource = jwtEnv ? "env" : jwtFile ? "file" : "missing";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue