commands

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse()

Parse parses the command line options and calls the specified command

Types

type CapabilityEntry added in v0.7.0

type CapabilityEntry struct {
	ReadWriteCapability CapabilityInfo    `json:"read_write_capability"`
	ReadOnlyCapability  *CapabilityInfo   `json:"read_only_capability,omitempty"`
	Children            []CapabilityEntry `json:"children,omitempty"`
}

type CapabilityInfo added in v0.7.0

type CapabilityInfo struct {
	Name            string `json:"name"`
	Description     string `json:"description"`
	IsReadOnly      *bool  `json:"is_read_only,omitempty"`
	ColorClass      string `json:"color_class,omitempty"`
	CapabilityLevel string `json:"capability_level,omitempty"`
}

type MTOptions added in v0.6.0

type MTOptions struct{}

func (MTOptions) GetToken added in v0.6.0

func (mt MTOptions) GetToken() string

func (MTOptions) MustGetToken added in v0.6.0

func (mt MTOptions) MustGetToken() string

func (MTOptions) Mytoken added in v0.6.0

func (mt MTOptions) Mytoken() string

func (MTOptions) MytokenEnv added in v0.6.0

func (mt MTOptions) MytokenEnv() string

func (MTOptions) MytokenFile added in v0.6.0

func (mt MTOptions) MytokenFile() string

func (MTOptions) MytokenPrompt added in v0.6.0

func (mt MTOptions) MytokenPrompt() bool

func (MTOptions) SSH added in v0.6.0

func (mt MTOptions) SSH() string

func (MTOptions) SetMytokenFile added in v0.6.0

func (MTOptions) SetMytokenFile(f string)

type SSHCalendarIDRequest added in v0.7.0

type SSHCalendarIDRequest struct {
	CalendarID string `json:"calendar_id"`
}

SSHCalendarIDRequest is used for calendar operations that only need the calendar ID

type SSHCalendarSubscriptionRequest added in v0.7.0

type SSHCalendarSubscriptionRequest struct {
	CalendarID string `json:"calendar_id"`
	api.AddMytokenToCalendarRequest
}

SSHCalendarSubscriptionRequest is used for subscribing/unsubscribing to calendars

type SSHCalendarUpdateRequest added in v0.7.0

type SSHCalendarUpdateRequest struct {
	CalendarID string `json:"calendar_id"`
	api.CreateCalendarRequest
}

SSHCalendarUpdateRequest is the request body for updating a calendar via SSH

type SSHNotificationAddTokenRequest added in v0.7.0

type SSHNotificationAddTokenRequest struct {
	ManagementCode string `json:"management_code"`
	api.NotificationAddTokenRequest
}

SSHNotificationAddTokenRequest is used for adding a token to a notification via SSH

type SSHNotificationManagementCodeRequest added in v0.7.0

type SSHNotificationManagementCodeRequest struct {
	ManagementCode string `json:"management_code"`
}

SSHNotificationManagementCodeRequest is used for notification operations that only need the management code

type SSHNotificationUpdateRequest added in v0.7.0

type SSHNotificationUpdateRequest struct {
	ManagementCode string `json:"management_code"`
	api.NotificationUpdateRequest
}

SSHNotificationUpdateRequest is the request body for updating a notification via SSH

type SSHTagCreateRequest added in v0.7.0

type SSHTagCreateRequest struct {
	Tag   api.Tag `json:"tag"`
	Color *string `json:"color,omitempty"`
}

SSHTagCreateRequest is the request body for creating a tag via SSH

type SSHTagDeleteRequest added in v0.7.0

type SSHTagDeleteRequest struct {
	Tag api.Tag `json:"tag"`
}

SSHTagDeleteRequest is used for deleting a tag

type SSHTagUpdateRequest added in v0.7.0

type SSHTagUpdateRequest struct {
	Tag   api.Tag `json:"tag"`
	Color *string `json:"color,omitempty"`
	Name  *string `json:"name,omitempty"`
}

SSHTagUpdateRequest is the request body for updating a tag via SSH

Jump to

Keyboard shortcuts

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