简体   繁体   中英

Is there any way to search for code inside CodeCommit repositories?

我确实可以访问 AWS 控制台中的数十个存储库,但是当试图通过查看特定代码段来寻找“灵感”时,例如“我知道有一种方法可以配置 sls 以创建 API 网关......”有点现在,在所有存储库中实际搜索字符串会很好。

At this time, AWS don't have a solution for code searching, but you can try Sourcegraph . The instalation and configuration is very easy.

From the documentation:

It takes less than a minute to run and install Sourcegraph using Docker: docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.20.0 Once the server is ready (logo is displayed in the terminal), navigate to the hostname or IP address on port 7080. Create the admin account, then you'll be guided through setting up Sourcegraph for code searching and navigation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM