ui

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand is a func that execute some commands

Types

type Controller

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

Controller is a struct designed to encapsulate payload data.

func NewUIController

func NewUIController() *Controller

NewUIController is a func that returns a *Controller struct

func (*Controller) GetStore

func (c *Controller) GetStore() *Payload

GetStore is a func that returns a *Payload struct

func (*Controller) Render

func (c *Controller) Render(cmd *cobra.Command, args []string) error

Render is a func that open Url

func (*Controller) Run

func (c *Controller) Run(cmd *cobra.Command, args []string) (pkg.Renderable, error)

Run is a fun that executes Open func and return an interface

type Payload

type Payload struct {
	StackURL string `json:"stackUrl"`
	Found    bool   `json:"browserFound"`
}

Payload is a struct designed to encapsulate payload data.

func NewDefaultUIStore

func NewDefaultUIStore() *Payload

NewDefaultUIStore is a func that returns a *UiStruct struct

Jump to

Keyboard shortcuts

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