Documentation
¶
Index ¶
- func ClearTerminal()
- func DeleteEnv(argDeleteEnv *string, envReader *env.Reader) (bool, error)
- func EnterEnvironment(envi any) error
- func NewCompletion() *domainOrHandleCompletion
- func PrintEnv(argListEnv *bool, envReader *env.Reader) (bool, error)
- func PrintVersion(argVersion *bool, buildTime, gitCommit, version string) bool
- func RetrieveEnvironment(envReader *env.Reader, host, environment, user, password *string, ...) (env.Environment, error)
- type PresetCompletion
- type Service
- func (s *Service) ErrorPrinter(err error)
- func (s *Service) HandleFile(args []string) error
- func (s *Service) HandlePreset(args []string) error
- func (s *Service) PrintColorsAndSigns()
- func (s *Service) RawQueryPrinter(msg string, isOutgoing bool)
- func (s *Service) Run(confDir string, cmd []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearTerminal ¶
func ClearTerminal()
func EnterEnvironment ¶
func NewCompletion ¶
func NewCompletion() *domainOrHandleCompletion
NewCompletion returns a new domainOrHandleCompletion instance.
func PrintVersion ¶
func RetrieveEnvironment ¶
Types ¶
type PresetCompletion ¶
type PresetCompletion struct {
// contains filtered or unexported fields
}
PresetCompletion implements the Completion interface for preset names.
func NewPresetCompletion ¶
func NewPresetCompletion(presets preset.Data) *PresetCompletion
NewPresetCompletion returns a new PresetCompletion instance.
func (*PresetCompletion) GetCompletionOptions ¶
func (p *PresetCompletion) GetCompletionOptions(currentCommand []string, entryIndex int) []commandline.CompletionOption
GetCompletionOptions returns the completion options for the given command.
type Service ¶
type Service struct {
ReturnErrorOnFail bool
// contains filtered or unexported fields
}
func New ¶
func New(client *rri.Client, presets preset.Data, presetCompletion *PresetCompletion, embedFS embed.FS) *Service
New returns a new Service instance.
func (*Service) ErrorPrinter ¶
func (*Service) HandleFile ¶
func (*Service) HandlePreset ¶
func (*Service) PrintColorsAndSigns ¶
func (s *Service) PrintColorsAndSigns()
func (*Service) RawQueryPrinter ¶
Click to show internal directories.
Click to hide internal directories.