{"modulePath":"github.com/cjavdev/spotted-cli","version":"v0.23.1","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package cmd\n\n## Constants\n\n```go\nconst Version = \"0.23.1\" // x-release-please-version\n\n```\n\n## Variables\n\n```go\nvar (\n\tCommand *cli.Command\n)\n```\n\n```go\nvar OutputFormats = []string{\"auto\", \"explore\", \"json\", \"jsonl\", \"pretty\", \"raw\", \"yaml\"}\n```\n\n## Functions\n\n```go\nfunc CredentialsPath() (string, error)\n```\n\n```go\nfunc DeleteCredentials() error\n```\n\n```go\nfunc GetAccessToken() string\n```\n\n```go\nfunc SaveCredentials(creds *Credentials) error\n```\n\n```go\nfunc ShowJSON(out *os.File, title string, res gjson.Result, format string, transform string) error\n```\nDisplay JSON to the user in various different formats\n\n```go\nfunc ShowJSONIterator[T any](stdout *os.File, title string, iter jsonview.Iterator[T], format string, transform string) error\n```\nFor an iterator over different value types, display its values to the user in different formats.\n\n## Types\n\n```go\ntype BodyContentType int\n```\n\n```go\nconst (\n\tEmptyBody BodyContentType = iota\n\tMultipartFormEncoded\n\tApplicationJSON\n\tApplicationOctetStream\n)\n```\n\n```go\ntype Credentials struct {\n\tAccessToken  string    `json:\"access_token\"`\n\tRefreshToken string    `json:\"refresh_token,omitempty\"`\n\tExpiresAt    time.Time `json:\"expires_at,omitempty\"`\n\tTokenType    string    `json:\"token_type,omitempty\"`\n\tScope        string    `json:\"scope,omitempty\"`\n}\n```\n\n```go\nfunc LoadCredentials() (*Credentials, error)\n```\n\n```go\nfunc (c *Credentials) IsExpired() bool\n```\n\n","path":"github.com/cjavdev/spotted-cli/pkg/cmd","name":"cmd","synopsis":"","isRedistributable":true}
