mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 06:22:45 -08:00
initial commit
This commit is contained in:
12
src/generate-config-example.ts
Normal file
12
src/generate-config-example.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import { DEFAULT_CONFIG, generateConfigTemplate } from "./config";
|
||||
|
||||
function main(): void {
|
||||
const outputPath = path.join(process.cwd(), "config.example.jsonc");
|
||||
const template = generateConfigTemplate(DEFAULT_CONFIG);
|
||||
fs.writeFileSync(outputPath, template, "utf-8");
|
||||
console.log(`Generated ${outputPath}`);
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user