github.com/supabase/cli@v1.168.1/internal/hostnames/get/get.go (about) 1 package get 2 3 import ( 4 "context" 5 "fmt" 6 7 "github.com/spf13/afero" 8 "github.com/supabase/cli/internal/hostnames" 9 ) 10 11 func Run(ctx context.Context, projectRef string, includeRawOutput bool, fsys afero.Fs) error { 12 // 1. Sanity checks. 13 // 2. activate custom hostname config 14 { 15 resp, err := hostnames.GetCustomHostnameConfig(ctx, projectRef) 16 if err != nil { 17 return err 18 } 19 status, err := hostnames.TranslateStatus(resp.JSON200, includeRawOutput) 20 if err != nil { 21 return err 22 } 23 fmt.Println(status) 24 return nil 25 } 26 }