cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type InitProjectArgs

type InitProjectArgs struct {
	BaseURL           string
	Dir               string
	Token             string
	OrgId             string
	Provider          string
	Name              string
	Description       string
	EnableWebhookAuth bool
}

type LiveDevConnection

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

func NewLiveDevConnection

func NewLiveDevConnection(logger logger.Logger, sdkEventsFile string, websocketId string, websocketUrl string, apiKey string) (*LiveDevConnection, error)

func (*LiveDevConnection) Close

func (c *LiveDevConnection) Close() error

func (*LiveDevConnection) SendMessage

func (c *LiveDevConnection) SendMessage(payload map[string]any, messageType string) error

func (*LiveDevConnection) WebURL

func (c *LiveDevConnection) WebURL(appUrl string) string

func (*LiveDevConnection) Write

func (c *LiveDevConnection) Write(jsonLogMessage []byte) (int, error)

implements io.Writer to send logs

type Message

type Message struct {
	ID      string         `json:"id"`
	Type    string         `json:"type"`
	Payload map[string]any `json:"payload"`
}

Jump to

Keyboard shortcuts

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