diff --git a/src/components/SearchResult.tsx b/src/components/SearchResult.tsx index ac92b98..34d2423 100644 --- a/src/components/SearchResult.tsx +++ b/src/components/SearchResult.tsx @@ -126,6 +126,10 @@ const SearchResult = (props: SearchResultProps): JSX.Element => { const bucketUrl = metadata.repositoryOfficial ? '' : `${metadata.repository}`; const bucketCommandLine = `${bucketName} ${bucketUrl}`.trim(); + const bucketCommand = `scoop bucket add ${bucketCommandLine}`; + const appCommand = `scoop install ${installBucketName ? bucketName + '/' : ''}${name}`; + const fullCommand = `${bucketCommand}\n${appCommand}`; + return ( @@ -196,13 +200,22 @@ const SearchResult = (props: SearchResultProps): JSX.Element => { - - - - + + + + + + + + + + handleCopyToClipboard(`${fullCommand}`)} + /> +