launchdarkly / ld-find-code-refs

Build tool for automatically sending feature flag code references to LaunchDarkly
https://launchdarkly.com
Other
46 stars 34 forks source link

Allow local dry run without access token and specifying the flag key(s) #231

Open dillonstreator opened 2 years ago

dillonstreator commented 2 years ago

I'd like to be able to perform a dry run locally without providing an access token and providing the flag key(s) myself.

jazanne commented 2 years ago

Hi @DillonStreator, thanks for the feedback. We are tracking this feature request.

kostyay commented 1 year ago

I used the following method:

Change this line: https://github.com/launchdarkly/ld-find-code-refs/blob/main/search/matcher.go#L34

To something like this:

    //flagKeys := flags.GetFlagKeys(opts, repoParams)
    flagKeys := map[string][]string{"PROJECT_NAME": []string{"my-flag"}}