cmd

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 44 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRootCmd

func BuildRootCmd() (*cobra.Command, error)

BuildRootCmd exposes the root command for tools like doc generators.

func Execute

func Execute(ctx context.Context) error

Types

type ApiKeyCreateOutput

type ApiKeyCreateOutput struct {
	ApiKey string `json:"api_key"`
}

ApiKeyCreateOutput represents the output format for the api-key create command.

type ApiKeyOutput

type ApiKeyOutput struct {
	Prefix    string `json:"prefix"`
	Name      string `json:"name"`
	CreatedAt string `json:"created_at"`
}

ApiKeyOutput represents the output format for a single API key.

type ClientOption

type ClientOption struct {
	Name       string // Display name
	ClientName string // Client name to pass to installMCPForClient
}

ClientOption represents a client choice for interactive selection

type DatabaseCreateOutput

type DatabaseCreateOutput struct {
	Name       string           `json:"name"`
	ID         string           `json:"id"`
	Size       string           `json:"size,omitempty"`
	Connection string           `json:"connection"`
	Type       api.DatabaseType `json:"-"`
}

DatabaseCreateOutput represents the output format for the create command

type DatabaseForkOutput

type DatabaseForkOutput struct {
	SourceName string           `json:"source_name"`
	Name       string           `json:"name"`
	ID         string           `json:"id"`
	Size       string           `json:"size,omitempty"`
	Connection string           `json:"connection"`
	Type       api.DatabaseType `json:"-"`
}

DatabaseForkOutput represents the output format for the fork command

type DatabaseListItem

type DatabaseListItem struct {
	ID             string             `json:"id"`
	Name           string             `json:"name"`
	Type           api.DatabaseType   `json:"type"`
	Size           *api.DatabaseSize  `json:"size,omitempty"`
	Status         api.DatabaseStatus `json:"status"`
	StorageMib     *int               `json:"storage_mib"`
	ComputeMinutes *int64             `json:"compute_minutes,omitempty"`
}

DatabaseListItem represents a database in the list command output

type InvoiceDetailOutput added in v0.10.0

type InvoiceDetailOutput struct {
	LineItems []InvoiceLineItemOutput `json:"line_items"`
}

InvoiceDetailOutput represents the output format for an invoice detail.

type InvoiceLineItemOutput added in v0.10.0

type InvoiceLineItemOutput struct {
	ProductType  string  `json:"product_type"`
	DatabaseID   string  `json:"database_id,omitempty"`
	DetailedSpec string  `json:"detailed_spec,omitempty"`
	Quantity     float64 `json:"quantity"`
	UnitPrice    float64 `json:"unit_price"`
	LineTotal    float64 `json:"line_total"`
}

InvoiceLineItemOutput represents the output format for a single invoice line item.

type InvoiceOutput added in v0.10.0

type InvoiceOutput struct {
	ID            string  `json:"id"`
	InvoiceNumber string  `json:"invoice_number"`
	InvoiceDate   string  `json:"invoice_date"`
	Total         float64 `json:"total"`
	Status        string  `json:"status"`
}

InvoiceOutput represents the output format for a single invoice.

type MCPClient

type MCPClient string

MCPClient represents our internal client types

const (
	ClaudeCode  MCPClient = "claude-code"
	Cursor      MCPClient = "cursor" // Both the IDE and the CLI
	Windsurf    MCPClient = "windsurf"
	Codex       MCPClient = "codex"
	Gemini      MCPClient = "gemini"
	VSCode      MCPClient = "vscode"
	Antigravity MCPClient = "antigravity"
	KiroCLI     MCPClient = "kiro-cli"
)

type MCPClientStatus added in v0.13.0

type MCPClientStatus string

type MCPClientStatusOutput added in v0.13.0

type MCPClientStatusOutput struct {
	Client MCPClient       `json:"client"`
	Status MCPClientStatus `json:"status"`
	Detail string          `json:"detail,omitempty"`
}

type MCPServerConfig

type MCPServerConfig struct {
	Command string   `json:"command"`
	Args    []string `json:"args"`
}

MCPServerConfig represents the MCP server configuration

type PaymentMethodOutput

type PaymentMethodOutput struct {
	ID              string `json:"id"`
	Brand           string `json:"brand"`
	Last4           string `json:"last4"`
	ExpMonth        int    `json:"exp_month"`
	ExpYear         int    `json:"exp_year"`
	Primary         bool   `json:"is_primary"`
	PendingDeletion bool   `json:"pending_deletion"`
}

PaymentMethodOutput represents the output format for a payment method

type Share added in v0.12.0

type Share struct {
	URL          string     `json:"url"`
	ShareToken   string     `json:"share_token"`
	DatabaseID   string     `json:"database_id"`
	DatabaseName string     `json:"database_name"`
	Status       string     `json:"status"`
	CreatedAt    time.Time  `json:"created_at"`
	ExpiresAt    *time.Time `json:"expires_at,omitempty"`
	RevokedAt    *time.Time `json:"revoked_at,omitempty"`
}

Share represents a database share in CLI output. The share_token (also embedded in the URL) is the only identifier exposed — it's what a recipient passes to 'ghost create', and it's also what you pass back to 'ghost share revoke' to revoke the share.

type VersionOutput

type VersionOutput struct {
	Version   string `json:"version"`
	BuildTime string `json:"build_time"`
	GitCommit string `json:"git_commit"`
	GoVersion string `json:"go_version"`
	Platform  string `json:"platform"`
}

Jump to

Keyboard shortcuts

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