Documentation
¶
Index ¶
- func CheckAndCreateULID(_ *cobra.Command, _ []string) error
- func GetCurrentTimestamp() string
- func GetFormattedTimestamp(t time.Time) string
- func GetOSName() string
- func GetOSVersion() string
- func GetProfile() (config.Profile, error)
- func PostRunAnalytics(cmd *cobra.Command, name string, args []string)
- func ReadUULD() (string, error)
- type About
- type Analytics
- type Command
- type Config
- type Event
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndCreateULID ¶
CheckAndCreateULID checks for a ULID in the config file and creates it if absent.
func GetCurrentTimestamp ¶
func GetCurrentTimestamp() string
GetCurrentTimestamp returns the current timestamp in ISO 8601 format.
func GetFormattedTimestamp ¶
GetFormattedTimestamp formats a given time.Time in ISO 8601 format.
func GetProfile ¶
Types ¶
type About ¶
type About struct {
Version string `json:"version"`
UIVersion string `json:"uiVersion"`
Commit string `json:"commit"`
DeploymentID string `json:"deploymentId"`
UpdateAvailable bool `json:"updateAvailable"`
LatestVersion string `json:"latestVersion"`
LLMActive bool `json:"llmActive"`
LLMProvider string `json:"llmProvider"`
OIDCActive bool `json:"oidcActive"`
License json.RawMessage `json:"license"`
Mode string `json:"mode"`
Staging string `json:"staging"`
HotTier string `json:"hotTier"`
GRPCPort int `json:"grpcPort"`
Store Store `json:"store"`
Analytics Analytics `json:"analytics"`
QueryEngine string `json:"queryEngine"`
}
About struct
func FetchAbout ¶
func FetchAbout(client *internalHTTP.HTTPClient) (about About, err error)
type Event ¶
type Event struct {
CLIVersion string `json:"cli_version"`
ULID string `json:"ulid"`
CommitHash string `json:"commit_hash"`
OSName string `json:"os_name"`
OSVersion string `json:"os_version"`
ReportCreatedAt string `json:"report_created_at"`
Command Command `json:"command"`
Errors *string `json:"errors"`
ExecutionTimestamp string `json:"execution_timestamp"`
}
Click to show internal directories.
Click to hide internal directories.