{"modulePath":"github.com/open-feature/cli","version":"v0.4.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sync\n\nPackage sync provides a wrapper around the generated OpenAPI client for sync operations\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient wraps the generated OpenAPI client with convenience methods\n\n```go\nfunc NewClient(baseURL string, authToken string) (*Client, error)\n```\nNewClient creates a new sync client\n\n```go\nfunc (c *Client) PullFlags(ctx context.Context) (*flagset.Flagset, error)\n```\nPullFlags fetches flags from the remote API\n\n```go\nfunc (c *Client) PushFlags(ctx context.Context, localFlags *flagset.Flagset, remoteFlags *flagset.Flagset, dryRun bool) (*PushResult, error)\n```\nPushFlags fetches remote flags, compares with local flags, and intelligently creates or updates flags as needed. Returns a PushResult with details of what was changed. If dryRun is true, only performs the comparison without making actual API calls.\n\n```go\ntype PushResult struct {\n\tCreated   []flagset.Flag\n\tUpdated   []flagset.Flag\n\tUnchanged []flagset.Flag\n}\n```\nPushResult contains the results of a push operation\n\n","path":"github.com/open-feature/cli/internal/api/sync","name":"sync","synopsis":"Package sync provides a wrapper around the generated OpenAPI client for sync operations","isRedistributable":true}
