Documentation
¶
Overview ¶
Package gemini provides the Gemini CLI command adapter.
Index ¶
- type Adapter
- func (a *Adapter) DefaultDir() string
- func (a *Adapter) FileExtension() string
- func (a *Adapter) Marshal(cmd *core.Command) ([]byte, error)
- func (a *Adapter) Name() string
- func (a *Adapter) Parse(data []byte) (*core.Command, error)
- func (a *Adapter) ReadFile(path string) (*core.Command, error)
- func (a *Adapter) WriteFile(cmd *core.Command, path string) error
- type ArgumentToml
- type CommandSection
- type ContentSection
- type ExampleToml
- type GeminiCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter converts between canonical Command and Gemini CLI command format.
func (*Adapter) DefaultDir ¶
DefaultDir returns the default directory name for Gemini commands.
func (*Adapter) FileExtension ¶
FileExtension returns the file extension for Gemini commands.
type ArgumentToml ¶
type ArgumentToml struct {
Name string `toml:"name"`
Type string `toml:"type,omitempty"`
Required bool `toml:"required,omitempty"`
Default string `toml:"default,omitempty"`
Hint string `toml:"hint,omitempty"`
Description string `toml:"description,omitempty"`
}
ArgumentToml represents an argument in TOML format.
type CommandSection ¶
CommandSection contains command metadata.
type ContentSection ¶
type ContentSection struct {
Instructions string `toml:"instructions"`
}
ContentSection contains the command instructions.
type ExampleToml ¶
type ExampleToml struct {
Description string `toml:"description,omitempty"`
Input string `toml:"input"`
Output string `toml:"output,omitempty"`
}
ExampleToml represents an example in TOML format.
type GeminiCommand ¶
type GeminiCommand struct {
Command CommandSection `toml:"command"`
Arguments []ArgumentToml `toml:"arguments,omitempty"`
Content ContentSection `toml:"content"`
Process []string `toml:"process,omitempty"`
Examples []ExampleToml `toml:"examples,omitempty"`
}
GeminiCommand represents a Gemini CLI command in TOML format.
Click to show internal directories.
Click to hide internal directories.