survey

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateCommand

func NewCreateCommand(commandName string, client client.API, w io.Writer) *cobra.Command

NewCreateCommand creates a new command for creating a survey.

func NewDeleteCommand

func NewDeleteCommand(commandName string, client client.API, w io.Writer) *cobra.Command

NewDeleteCommand creates a new command to delete a survey.

func NewListCommand

func NewListCommand(commandName string, c client.API, w io.Writer) *cobra.Command

NewListCommand creates a new command to list surveys

func NewResponseCommand

func NewResponseCommand(client client.API, w io.Writer) *cobra.Command

NewResponseCommand creates a new `survey response` parent command

func NewResponseCreateCommand

func NewResponseCreateCommand(commandName string, client client.API, w io.Writer) *cobra.Command

NewResponseCreateCommand creates a new command for creating a survey response.

func NewResponseDeleteAllCommand

func NewResponseDeleteAllCommand(commandName string, client client.API, w io.Writer) *cobra.Command

NewResponseDeleteAllCommand creates a new command to delete all survey responses.

func NewResponseDeleteCommand

func NewResponseDeleteCommand(commandName string, client client.API, w io.Writer) *cobra.Command

NewResponseDeleteCommand creates a new command to delete a survey response.

func NewResponseListCommand

func NewResponseListCommand(commandName string, c client.API, w io.Writer) *cobra.Command

NewResponseListCommand creates a new command to list survey responses

func NewResponseSummaryCommand

func NewResponseSummaryCommand(commandName string, client client.API, w io.Writer) *cobra.Command

NewResponseSummaryCommand creates a new command to view the response summary for a survey.

func NewResponseViewCommand

func NewResponseViewCommand(commandName string, client client.API, w io.Writer) *cobra.Command

NewResponseViewCommand creates a new command to show a survey response.

func NewSurveyCommand

func NewSurveyCommand(client client.API, w io.Writer) *cobra.Command

NewSurveyCommand creates a new `survey` command

func NewViewCommand

func NewViewCommand(commandName string, client client.API, w io.Writer) *cobra.Command

NewViewCommand creates a new command to show a survey.

Types

type CreateOptions

type CreateOptions struct {
	Args         []string
	TemplatePath string
	Title        string
}

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

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

type ResponseCreateOptions struct {
	Args         []string
	TemplatePath string
}

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

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.

func (ResponseListView) Update

func (lv ResponseListView) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update will update the view.

func (ResponseListView) View

func (lv ResponseListView) View() string

View will render the view.

type ResponseSummaryOptions

type ResponseSummaryOptions struct {
	Args []string
	Json bool
}

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

type SurveyListView struct {
	List   list.Model
	Survey *model.Survey
}

SurveyListView is responsible for presenting a list view to the user.

func (SurveyListView) Init

func (lv SurveyListView) Init() tea.Cmd

Init will initialise the view.

func (SurveyListView) Update

func (lv SurveyListView) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update will update the view.

func (SurveyListView) View

func (lv SurveyListView) View() string

View will render the view.

type ViewOptions

type ViewOptions struct {
	Args []string
}

ViewOptions is the options for the detail view of a survey.

Jump to

Keyboard shortcuts

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