We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8edf231 commit 71d022dCopy full SHA for 71d022d
src/shared/prompts/replacement/builtins.ts
@@ -5,6 +5,7 @@
5
6
import { existsSync } from 'node:fs';
7
import { readFile } from 'node:fs/promises';
8
+import * as os from 'node:os';
9
import * as path from 'node:path';
10
11
const CM_FOLDER = '.codemachine';
@@ -15,6 +16,7 @@ const STATIC_PLACEHOLDERS: Record<string, () => string> = {
15
16
date: () => new Date().toISOString().split('T')[0], // YYYY-MM-DD
17
datetime: () => new Date().toISOString(),
18
timestamp: () => Date.now().toString(),
19
+ user_name: () => os.userInfo().username,
20
};
21
22
// Context-dependent placeholders (loaded from template.json)
0 commit comments