promptexecutors

package
v0.0.0-...-e1452ac Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisplayCollectionExecutor

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

Executor for display collection action.

func NewDisplayCollectionExecutor

func NewDisplayCollectionExecutor(c internal.Context, logger logger.Logger, output func(string)) DisplayCollectionExecutor

NewDisplayCollectionExecutor builds executor for display collection action.

func (DisplayCollectionExecutor) Display

func (dc DisplayCollectionExecutor) Display(filterBy string)

Display displays on the out the current selected collection.

type ExecuteRequestExecutor

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

Executor for execute request action.

func NewExecuteRequestExecutor

func NewExecuteRequestExecutor(c internal.Context, logger logger.Logger) ExecuteRequestExecutor

NewSettingsExecutor builds executor for execute request action.

func (ExecuteRequestExecutor) Call

Call calls the API {item} request.

func (ExecuteRequestExecutor) HistoriseNewCollectionItem

func (er ExecuteRequestExecutor) HistoriseNewCollectionItem(item postman.CollectionHistoryItem) bool

HistoriseCollection writes on the disk the collection items response.

func (ExecuteRequestExecutor) ResetHistory

func (er ExecuteRequestExecutor) ResetHistory()

ResetHistory resets the history of the current selected collection.

type HelpExecutor

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

Executor for help action.

func NewHelpExecutor

func NewHelpExecutor(actions []internal.PromptAction) HelpExecutor

NewHelpExecutor builds executor for help action.

func (HelpExecutor) Display

func (h HelpExecutor) Display()

func (HelpExecutor) Generate

func (h HelpExecutor) Generate() string

type SettingsExecutor

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

Executor for settings action.

func NewSettingsExecutor

func NewSettingsExecutor(c internal.Context, logger logger.Logger) SettingsExecutor

NewSettingsExecutor builds executor for settings action.

func (SettingsExecutor) DisableSecureMode

func (s SettingsExecutor) DisableSecureMode() bool

DisableSecureMode decrypts data on disk.

func (SettingsExecutor) EnableSecureMode

func (s SettingsExecutor) EnableSecureMode(secret string) bool

EnableSecureMode (re)encrypts data on disk with the new {secret}.

func (SettingsExecutor) UpdateReadme

func (s SettingsExecutor) UpdateReadme(documentation string)

UpdateReadme updates the README.md using the documentation helper.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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