• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 19140348754

06 Nov 2025 03:13PM UTC coverage: 54.622% (+0.02%) from 54.604%
19140348754

Pull #4320

github

web-flow
Merge 1aa4e5564 into d736cfd4d
Pull Request #4320: show api keys with deprecated flag

1 of 9 new or added lines in 3 files covered. (11.11%)

100 existing lines in 8 files now uncovered.

6376 of 11673 relevant lines covered (54.62%)

6.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

56.25
/internal/utils/flags/config_path.go
1
package flags
2

3
import (
4
        "strings"
5

6
        "github.com/spf13/afero"
7
        "github.com/supabase/cli/internal/utils"
8
)
9

10
func LoadConfig(fsys afero.Fs) error {
59✔
11
        utils.Config.ProjectId = ProjectRef
59✔
12
        if err := utils.Config.Load("", utils.NewRootFS(fsys)); err != nil {
66✔
13
                return err
7✔
14
        }
7✔
15
        utils.UpdateDockerIds()
52✔
16
        // Apply profile specific overrides
52✔
17
        if strings.EqualFold(utils.CurrentProfile.Name, "snap") {
52✔
UNCOV
18
                ext := utils.Config.Auth.External["snapchat"]
×
UNCOV
19
                ext.Enabled = true
×
UNCOV
20
                ext.ClientId = utils.CurrentProfile.AuthClientID
×
UNCOV
21
                // Any dummy value should work for local dev
×
UNCOV
22
                ext.Secret.Value = utils.CurrentProfile.AuthClientID
×
UNCOV
23
                utils.Config.Auth.External["snapchat"] = ext
×
UNCOV
24
        }
×
25
        return nil
52✔
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc