()
| 25 | } |
| 26 | |
| 27 | static findConfig(): string { |
| 28 | if (process.env.A3S_CONFIG) return process.env.A3S_CONFIG; |
| 29 | const homeConfig: string = path.join(os.homedir(), ".a3s", "config.acl"); |
| 30 | if (fs.existsSync(homeConfig)) return homeConfig; |
| 31 | throw new Error("Config not found. Create ~/.a3s/config.acl or set A3S_CONFIG"); |
| 32 | } |
| 33 | |
| 34 | static initGitRepo(dir: string): void { |
| 35 | execSync("git init", { cwd: dir, stdio: "pipe" }); |