Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"strings"
"time"

"ghealth/pkg/auth"
"ghealth/pkg/client"
"ghealth/pkg/config"
"github.com/Google-Health-API/google-health-cli/pkg/auth"
"github.com/Google-Health-API/google-health-cli/pkg/client"
"github.com/Google-Health-API/google-health-cli/pkg/config"
"github.com/spf13/cobra"
"golang.org/x/oauth2"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/config_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"strings"
"time"

"ghealth/pkg/client"
"ghealth/pkg/config"
"github.com/BurntSushi/toml"
"github.com/Google-Health-API/google-health-cli/pkg/client"
"github.com/Google-Health-API/google-health-cli/pkg/config"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"strings"
"time"

"ghealth/pkg/client"
"ghealth/pkg/output"
"ghealth/pkg/types"
"github.com/Google-Health-API/google-health-cli/pkg/client"
"github.com/Google-Health-API/google-health-cli/pkg/output"
"github.com/Google-Health-API/google-health-cli/pkg/types"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/data_civil_zone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"testing"

"ghealth/pkg/types"
"github.com/Google-Health-API/google-health-cli/pkg/types"
)

// Civil filter fields (interval civil_start_time, sleep civil_end_time) do
Expand Down
2 changes: 1 addition & 1 deletion cmd/data_ecg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"testing"

"ghealth/pkg/types"
"github.com/Google-Health-API/google-health-cli/pkg/types"
)

// buildFilter for ECG must produce a physical start_time lower-bound filter and
Expand Down
2 changes: 1 addition & 1 deletion cmd/data_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"testing"

"ghealth/pkg/types"
"github.com/Google-Health-API/google-health-cli/pkg/types"
)

func TestParseEndDate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/data_localday_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"testing"

"ghealth/pkg/types"
"github.com/Google-Health-API/google-health-cli/pkg/types"
)

// At a +02:00 host, a bare date on a physical-time (sample) field must anchor at
Expand Down
4 changes: 2 additions & 2 deletions cmd/data_range_cap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"strings"
"testing"

"ghealth/pkg/client"
"ghealth/pkg/types"
"github.com/Google-Health-API/google-health-cli/pkg/client"
"github.com/Google-Health-API/google-health-cli/pkg/types"
)

func TestRollupRangeCapDays_Registry(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/data_timezone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"
"time"

"ghealth/pkg/types"
"github.com/Google-Health-API/google-health-cli/pkg/types"
)

func writeTimezoneConfig(t *testing.T, dir, tz string) {
Expand Down
8 changes: 4 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package cmd

import (
"ghealth/internal/version"
"ghealth/pkg/auth"
"ghealth/pkg/client"
configPkg "ghealth/pkg/config"
"github.com/Google-Health-API/google-health-cli/internal/version"
"github.com/Google-Health-API/google-health-cli/pkg/auth"
"github.com/Google-Health-API/google-health-cli/pkg/client"
configPkg "github.com/Google-Health-API/google-health-cli/pkg/config"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"sort"
"strings"

"ghealth/pkg/auth"
"ghealth/pkg/client"
"ghealth/pkg/schema"
"ghealth/pkg/types"
"github.com/Google-Health-API/google-health-cli/pkg/auth"
"github.com/Google-Health-API/google-health-cli/pkg/client"
"github.com/Google-Health-API/google-health-cli/pkg/schema"
"github.com/Google-Health-API/google-health-cli/pkg/types"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/schema_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"testing"

"ghealth/pkg/types"
"github.com/Google-Health-API/google-health-cli/pkg/types"
)

// schema type <name> must describe the API's real parameters, never the
Expand Down
6 changes: 3 additions & 3 deletions cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"path/filepath"
"strings"

"ghealth/pkg/auth"
"ghealth/pkg/client"
"ghealth/pkg/config"
"github.com/Google-Health-API/google-health-cli/pkg/auth"
"github.com/Google-Health-API/google-health-cli/pkg/client"
"github.com/Google-Health-API/google-health-cli/pkg/config"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/timezone.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"sync"
"time"

"ghealth/pkg/config"
"github.com/Google-Health-API/google-health-cli/pkg/config"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package cmd
import (
"encoding/json"

"ghealth/pkg/client"
"ghealth/pkg/output"
"github.com/Google-Health-API/google-health-cli/pkg/client"
"github.com/Google-Health-API/google-health-cli/pkg/output"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"strings"
"time"

"ghealth/pkg/client"
configPkg "ghealth/pkg/config"
"ghealth/pkg/output"
"github.com/Google-Health-API/google-health-cli/pkg/client"
configPkg "github.com/Google-Health-API/google-health-cli/pkg/config"
"github.com/Google-Health-API/google-health-cli/pkg/output"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module ghealth
module github.com/Google-Health-API/google-health-cli

go 1.23.0

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package main
import (
"os"

"ghealth/cmd"
"github.com/Google-Health-API/google-health-cli/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"sync"
"time"

"ghealth/pkg/config"
"github.com/Google-Health-API/google-health-cli/pkg/config"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
)
Expand Down
8 changes: 4 additions & 4 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"strings"
"time"

"ghealth/internal/version"
"ghealth/pkg/auth"
"github.com/Google-Health-API/google-health-cli/internal/version"
"github.com/Google-Health-API/google-health-cli/pkg/auth"
)

const MaxRetries = 3
Expand Down Expand Up @@ -229,7 +229,7 @@ func (c *Client) doOnce(req *Request) (*Response, error) {
return nil, &AuthError{Err: err}
}
httpReq.Header.Set("Authorization", "Bearer "+token)
httpReq.Header.Set("x-goog-api-client", "ghealth/"+version.Version)
httpReq.Header.Set("x-goog-api-client", "github.com/Google-Health-API/google-health-cli/"+version.Version)

if req.ContentType != "" {
httpReq.Header.Set("Content-Type", req.ContentType)
Expand Down Expand Up @@ -272,7 +272,7 @@ func (c *Client) DryRun(req *Request) (json.RawMessage, error) {
"url": fullURL,
"headers": map[string]string{
"Authorization": "Bearer [REDACTED]",
"x-goog-api-client": "ghealth/" + version.Version,
"x-goog-api-client": "github.com/Google-Health-API/google-health-cli/" + version.Version,
"Content-Type": "application/json",
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/schema/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"path/filepath"
"time"

"ghealth/pkg/config"
"github.com/Google-Health-API/google-health-cli/pkg/config"
)

const (
Expand Down