cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

Types

type Agents

type Agents struct {
	Quiet  bool   `usage:"Only print IDs of agents" short:"q"`
	Wide   bool   `usage:"Print more information" short:"w"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// contains filtered or unexported fields
}

func (*Agents) Customize

func (l *Agents) Customize(cmd *cobra.Command)

func (*Agents) Run

func (l *Agents) Run(cmd *cobra.Command, args []string) error

type Create

type Create struct {
	Quiet bool `usage:"Only print ID after successful creation." short:"q"`
	// contains filtered or unexported fields
}

func (*Create) Customize

func (l *Create) Customize(cmd *cobra.Command)

func (*Create) Run

func (l *Create) Run(cmd *cobra.Command, args []string) error

type Credentials

type Credentials struct {
	Wide     bool   `usage:"Print more information" short:"w"`
	Quiet    bool   `usage:"Only print IDs of credentials" short:"q"`
	ThreadID string `usage:"Specific thread list credentials for" short:"t"`
	// contains filtered or unexported fields
}

func (*Credentials) Customize

func (l *Credentials) Customize(cmd *cobra.Command)

func (*Credentials) Run

func (l *Credentials) Run(cmd *cobra.Command, _ []string) error

type CredentialsDelete

type CredentialsDelete struct {
	Quiet bool `usage:"Only print IDs of credentials" short:"q"`
	// contains filtered or unexported fields
}

func (*CredentialsDelete) Customize

func (l *CredentialsDelete) Customize(cmd *cobra.Command)

func (*CredentialsDelete) Run

func (l *CredentialsDelete) Run(cmd *cobra.Command, args []string) error

type Debug

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

func (*Debug) Customize

func (l *Debug) Customize(cmd *cobra.Command)

func (*Debug) Run

func (l *Debug) Run(cmd *cobra.Command, args []string) error

type Delete

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

func (*Delete) Customize

func (l *Delete) Customize(cmd *cobra.Command)

func (*Delete) Run

func (l *Delete) Run(cmd *cobra.Command, args []string) error

type Edit

type Edit struct {
	Prompt bool `usage:"Edit just the prompt for the agent" short:"p"`
	// contains filtered or unexported fields
}

func (*Edit) Customize

func (l *Edit) Customize(cmd *cobra.Command)

func (*Edit) Run

func (l *Edit) Run(cmd *cobra.Command, args []string) error

type EmailReceivers

type EmailReceivers struct {
	Quiet  bool   `usage:"Only print IDs of agents" short:"q"`
	Wide   bool   `usage:"Print more information" short:"w"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// contains filtered or unexported fields
}

func (*EmailReceivers) Customize

func (l *EmailReceivers) Customize(cmd *cobra.Command)

func (*EmailReceivers) Run

func (l *EmailReceivers) Run(cmd *cobra.Command, args []string) error

type Invoke

type Invoke struct {
	Thread  string `usage:"Thread name to run the agent in." short:"t"`
	Step    string `usage:"Workflow step to rerun from, thread is already required" short:"s"`
	Quiet   *bool  `usage:"Only print output characters" short:"q"`
	Verbose bool   `usage:"Print more information" short:"v"`
	Async   bool   `usage:"Run the agent asynchronously" short:"a"`
	// contains filtered or unexported fields
}

func (*Invoke) Customize

func (l *Invoke) Customize(cmd *cobra.Command)

func (*Invoke) GetQuiet

func (l *Invoke) GetQuiet() bool

func (*Invoke) Pre

func (l *Invoke) Pre(*cobra.Command, []string) error

func (*Invoke) Run

func (l *Invoke) Run(cmd *cobra.Command, args []string) error

type Obot

type Obot struct {
	Debug  bool `usage:"Enable debug logging"`
	Client *apiclient.Client
}

func (*Obot) PersistentPre

func (a *Obot) PersistentPre(*cobra.Command, []string) error

func (*Obot) Run

func (a *Obot) Run(cmd *cobra.Command, _ []string) error

type RunPrint

type RunPrint struct {
	Quiet   bool `usage:"Only print the response content of the runs" short:"q"`
	Verbose bool `usage:"Print more information" short:"v"`
	// contains filtered or unexported fields
}

func (*RunPrint) Customize

func (l *RunPrint) Customize(cmd *cobra.Command)

func (*RunPrint) Run

func (l *RunPrint) Run(cmd *cobra.Command, args []string) error

type Runs

type Runs struct {
	Wide   bool   `usage:"Print more information" short:"w"`
	Quiet  bool   `usage:"Only print IDs of runs" short:"q"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	Follow bool   `usage:"Follow the output of runs" short:"f"`
	// contains filtered or unexported fields
}

func (*Runs) Customize

func (l *Runs) Customize(cmd *cobra.Command)

func (*Runs) Run

func (l *Runs) Run(cmd *cobra.Command, args []string) error

type Server

type Server struct {
	services.Config
}

func (*Server) Run

func (s *Server) Run(cmd *cobra.Command, _ []string) error

type ThreadPrint

type ThreadPrint struct {
	Quiet   bool `usage:"Only print response content of threads" short:"q"`
	Follow  bool `usage:"Follow the thread and print new events" short:"f"`
	Verbose bool `usage:"Print more information" short:"v"`
	// contains filtered or unexported fields
}

func (*ThreadPrint) Customize

func (l *ThreadPrint) Customize(cmd *cobra.Command)

func (*ThreadPrint) Run

func (l *ThreadPrint) Run(cmd *cobra.Command, args []string) error

type Threads

type Threads struct {
	Quiet  bool   `usage:"Only print IDs of threads" short:"q"`
	Wide   bool   `usage:"Print more information" short:"w"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// contains filtered or unexported fields
}

func (*Threads) Customize

func (l *Threads) Customize(cmd *cobra.Command)

func (*Threads) Run

func (l *Threads) Run(cmd *cobra.Command, args []string) error

type ToolRegister

type ToolRegister struct {
	Quiet bool `usage:"Only print IDs of created tool references:" short:"q"`
	// contains filtered or unexported fields
}

func (*ToolRegister) Customize

func (l *ToolRegister) Customize(cmd *cobra.Command)

func (*ToolRegister) Run

func (l *ToolRegister) Run(cmd *cobra.Command, args []string) error

type ToolUnregister

type ToolUnregister struct {
	Quiet bool `usage:"Only print IDs of unregistered tool references" short:"q"`
	// contains filtered or unexported fields
}

func (*ToolUnregister) Customize

func (l *ToolUnregister) Customize(cmd *cobra.Command)

func (*ToolUnregister) Run

func (l *ToolUnregister) Run(cmd *cobra.Command, args []string) error

type ToolUpdate

type ToolUpdate struct {
	Quiet bool `usage:"Only print IDs of updated step template" short:"q"`
	// contains filtered or unexported fields
}

func (*ToolUpdate) Customize

func (l *ToolUpdate) Customize(cmd *cobra.Command)

func (*ToolUpdate) Run

func (l *ToolUpdate) Run(cmd *cobra.Command, args []string) error

type Tools

type Tools struct {
	Quiet  bool   `usage:"Only print IDs of tools" short:"q"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// contains filtered or unexported fields
}

func (*Tools) Customize

func (l *Tools) Customize(cmd *cobra.Command)

func (*Tools) Run

func (l *Tools) Run(cmd *cobra.Command, args []string) error

type Update

type Update struct {
	Quiet bool `usage:"Only print IDs of updated agent/workflow" short:"q"`
	// contains filtered or unexported fields
}

func (*Update) Customize

func (l *Update) Customize(cmd *cobra.Command)

func (*Update) Run

func (l *Update) Run(cmd *cobra.Command, args []string) error

type Version

type Version struct{}

func (*Version) Run

func (l *Version) Run(*cobra.Command, []string) error

type Webhooks

type Webhooks struct {
	Quiet  bool   `usage:"Only print IDs of agents" short:"q"`
	Wide   bool   `usage:"Print more information" short:"w"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// contains filtered or unexported fields
}

func (*Webhooks) Customize

func (l *Webhooks) Customize(cmd *cobra.Command)

func (*Webhooks) Run

func (l *Webhooks) Run(cmd *cobra.Command, args []string) error

type WorkflowAuth

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

func (*WorkflowAuth) Customize

func (l *WorkflowAuth) Customize(cmd *cobra.Command)

func (*WorkflowAuth) Run

func (l *WorkflowAuth) Run(cmd *cobra.Command, args []string) error

type Workflows

type Workflows struct {
	Quiet  bool   `usage:"Only print IDs of agents" short:"q"`
	Wide   bool   `usage:"Print more information" short:"w"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// contains filtered or unexported fields
}

func (*Workflows) Customize

func (l *Workflows) Customize(cmd *cobra.Command)

func (*Workflows) Run

func (l *Workflows) Run(cmd *cobra.Command, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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