feat(mcp): only set variables for set flags by keegancsmith · Pull Request #1234 · sourcegraph/src-cli
Previously we had code which tried to detect nil values. But for example if a flag is an integer that wouldn't work. Instead we use a more robust approach of only setting variables if the flag was passed in as an argument. Test Plan: this command actually returns results now. Previously it wouldn't since it would have limit set to 0. go run ./cmd/src -v mcp list-repos -query 'cloud'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters