MCPcopy
hub / github.com/github/awesome-copilot / shareFile

Function shareFile

website/src/scripts/utils.ts:236–241  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

234 * Share/copy link to clipboard (deep link to current page with file hash)
235 */
236export async function shareFile(filePath: string): Promise<boolean> {
237 const deepLinkUrl = `${window.location.origin}${
238 window.location.pathname
239 }#file=${encodeURIComponent(filePath)}`;
240 return copyToClipboard(deepLinkUrl);
241}
242
243type QueryParamValue = string | string[] | boolean | null | undefined;
244

Callers 2

setupModalFunction · 0.90
setupActionHandlersFunction · 0.85

Calls 1

copyToClipboardFunction · 0.85

Tested by

no test coverage detected