(config: Config)
| 78 | * Writes config object to config.json |
| 79 | */ |
| 80 | export async function writeConfig(config: Config): Promise<void> { |
| 81 | const configPath = await getConfigPath(); |
| 82 | await fs.writeJson(configPath, config, { spaces: 2 }); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Gets the access token from config.json, or null if not found |
no test coverage detected