Documentation
¶
Index ¶
- func NewCreateCommand(commandName string, client client.API, w io.Writer) *cobra.Command
- func NewDeleteCommand(commandName string, client client.API, w io.Writer) *cobra.Command
- func NewListCommand(commandName string, c client.API, w io.Writer) *cobra.Command
- func NewResponseCommand(client client.API, w io.Writer) *cobra.Command
- func NewResponseCreateCommand(commandName string, client client.API, w io.Writer) *cobra.Command
- func NewResponseDeleteAllCommand(commandName string, client client.API, w io.Writer) *cobra.Command
- func NewResponseDeleteCommand(commandName string, client client.API, w io.Writer) *cobra.Command
- func NewResponseListCommand(commandName string, c client.API, w io.Writer) *cobra.Command
- func NewResponseSummaryCommand(commandName string, client client.API, w io.Writer) *cobra.Command
- func NewResponseViewCommand(commandName string, client client.API, w io.Writer) *cobra.Command
- func NewSurveyCommand(client client.API, w io.Writer) *cobra.Command
- func NewViewCommand(commandName string, client client.API, w io.Writer) *cobra.Command
- type CreateOptions
- type DeleteOptions
- type InteractiveRenderer
- type ListOptions
- type ResponseCreateOptions
- type ResponseDeleteAllOptions
- type ResponseDeleteOptions
- type ResponseInteractiveRenderer
- type ResponseListOptions
- type ResponseListView
- type ResponseSummaryOptions
- type ResponseViewOptions
- type SurveyListView
- type ViewOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateCommand ¶
NewCreateCommand creates a new command for creating a survey.
func NewDeleteCommand ¶
NewDeleteCommand creates a new command to delete a survey.
func NewListCommand ¶
NewListCommand creates a new command to list surveys
func NewResponseCommand ¶
NewResponseCommand creates a new `survey response` parent command
func NewResponseCreateCommand ¶
NewResponseCreateCommand creates a new command for creating a survey response.
func NewResponseDeleteAllCommand ¶
NewResponseDeleteAllCommand creates a new command to delete all survey responses.
func NewResponseDeleteCommand ¶
NewResponseDeleteCommand creates a new command to delete a survey response.
func NewResponseListCommand ¶
NewResponseListCommand creates a new command to list survey responses
func NewResponseSummaryCommand ¶
NewResponseSummaryCommand creates a new command to view the response summary for a survey.
func NewResponseViewCommand ¶
NewResponseViewCommand creates a new command to show a survey response.
func NewSurveyCommand ¶
NewSurveyCommand creates a new `survey` command
Types ¶
type CreateOptions ¶
CreateOptions are the options for creating a survey.
type DeleteOptions ¶
type DeleteOptions struct {
Args []string
}
DeleteOptions is the options for the delete survey command.
type InteractiveRenderer ¶
type InteractiveRenderer struct{}
InteractiveRenderer runs the Bubbletea UI framework for an interactive list.
func (*InteractiveRenderer) Render ¶
func (r *InteractiveRenderer) Render(c client.API, surveys client.ListSurveysResponse, w io.Writer) error
Render will render the survey list in an interactive manner.
type ListOptions ¶
type ListOptions struct {
Args []string
Output shared.OutputOptions
Limit int
Offset int
}
ListOptions is the options for the listing surveys command.
type ResponseCreateOptions ¶
ResponseCreateOptions are the options for creating a survey response.
type ResponseDeleteAllOptions ¶
type ResponseDeleteAllOptions struct {
Args []string
}
ResponseDeleteAllOptions is the options for the delete all survey responses command.
type ResponseDeleteOptions ¶
type ResponseDeleteOptions struct {
Args []string
}
ResponseDeleteOptions is the options for the delete survey response command.
type ResponseInteractiveRenderer ¶
type ResponseInteractiveRenderer struct{}
ResponseInteractiveRenderer runs the Bubbletea UI framework for an interactive response list.
func (*ResponseInteractiveRenderer) Render ¶
func (r *ResponseInteractiveRenderer) Render(responses client.ListSurveyResponsesResponse, w io.Writer) error
Render will render the survey response list in an interactive manner.
type ResponseListOptions ¶
type ResponseListOptions struct {
Args []string
Output shared.OutputOptions
Limit int
Offset int
}
ResponseListOptions is the options for the listing survey responses command.
type ResponseListView ¶
type ResponseListView struct {
List list.Model
Response *model.SurveyResponse
}
ResponseListView is responsible for presenting a response list view to the user.
func (ResponseListView) Init ¶
func (lv ResponseListView) Init() tea.Cmd
Init will initialise the view.
type ResponseSummaryOptions ¶
ResponseSummaryOptions is the options for the survey response summary command.
type ResponseViewOptions ¶
type ResponseViewOptions struct {
Args []string
}
ResponseViewOptions is the options for viewing a survey response.
type SurveyListView ¶
SurveyListView is responsible for presenting a list view to the user.
type ViewOptions ¶
type ViewOptions struct {
Args []string
}
ViewOptions is the options for the detail view of a survey.