getRemoteConfig
1 parent 82e5ca6 commit c7a94c9Copy full SHA for c7a94c9
1 file changed
src/config/file.ts
@@ -39,6 +39,16 @@ export function getConfigFileInput(
39
return undefined;
40
}
41
42
+/**
43
+ * Attempts to fetch a `UserConfig` from a remote `address`.
44
+ *
45
+ * @param logger The logger to use.
46
+ * @param configFile The remote address of the configuration file.
47
+ * @param apiDetails Information about how to connect to the API.
48
+ * @param validateConfig Whether to validate the configuration.
49
50
+ * @returns The `UserConfig`, if it could be fetched and parsed successfully.
51
+ */
52
export async function getRemoteConfig(
53
logger: Logger,
54
configFile: string,
0 commit comments