fetchContents()
Home > @backstage/plugin-scaffolder-node
> fetchContents
A helper function that reads the contents of a directory from the given URL. Can be used in your own actions, and also used behind fetch:template and fetch:plain
Signature:
function fetchContents(options: {
reader: UrlReaderService;
integrations: ScmIntegrations;
baseUrl?: string;
fetchUrl?: string;
outputPath: string;
token?: string;
}): Promise<void>;
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
{ reader: UrlReaderService; integrations: ScmIntegrations; baseUrl?: string; fetchUrl?: string; outputPath: string; token?: string; } |
Promise<void>