cmd

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package cmd implements the command-line interface for the Glean CLI. It provides commands for interacting with Glean's API, managing configuration, and performing various operations like search and chat.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command and handles any errors. It's the main entry point for the CLI application.

func NewCmdAPI

func NewCmdAPI() *cobra.Command

NewCmdAPI creates and returns the api command.

func NewCmdActivity

func NewCmdActivity() *cobra.Command

func NewCmdAgents

func NewCmdAgents() *cobra.Command

func NewCmdAnnouncements

func NewCmdAnnouncements() *cobra.Command

func NewCmdAnswers

func NewCmdAnswers() *cobra.Command

func NewCmdAuth

func NewCmdAuth() *cobra.Command

NewCmdAuth creates the `glean auth` command group.

func NewCmdChat

func NewCmdChat() *cobra.Command

NewCmdChat creates and returns the chat command.

func NewCmdCollections

func NewCmdCollections() *cobra.Command

func NewCmdDocuments

func NewCmdDocuments() *cobra.Command

func NewCmdEntities

func NewCmdEntities() *cobra.Command

func NewCmdGenerateSkills added in v0.6.3

func NewCmdGenerateSkills() *cobra.Command

NewCmdGenerateSkills creates the generate-skills command.

func NewCmdInsights

func NewCmdInsights() *cobra.Command

func NewCmdMessages

func NewCmdMessages() *cobra.Command

func NewCmdPins

func NewCmdPins() *cobra.Command

func NewCmdRoot

func NewCmdRoot() *cobra.Command

NewCmdRoot creates and returns the root command for the Glean CLI. It sets up the base command structure and adds all subcommands.

func NewCmdSchema

func NewCmdSchema() *cobra.Command

NewCmdSchema creates and returns the schema command.

func NewCmdSearch

func NewCmdSearch() *cobra.Command

NewCmdSearch creates and returns the search command.

func NewCmdShortcuts

func NewCmdShortcuts() *cobra.Command

func NewCmdTools

func NewCmdTools() *cobra.Command

func NewCmdUpdate added in v0.6.4

func NewCmdUpdate() *cobra.Command

func NewCmdVerification

func NewCmdVerification() *cobra.Command

func SetVersion

func SetVersion(v string)

SetVersion records the build-time version for use in --version and update checks.

Types

type APIOptions

type APIOptions struct {
	// contains filtered or unexported fields
}

APIOptions holds configuration for the API command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL