Documentation ¶
Index ¶
- Constants
- Variables
- func Flags() ([]cli.Flag, error)
- func MarshalFile(v any, filepath string, fn func(any) ([]byte, error)) error
- func PathExists(path string) bool
- func PathStateHome() string
- func Table(columns ...Column) string
- func UnmarshalFile(filepath string, v any, f func([]byte, any) error) error
- type CliEnv
- func (ce *CliEnv) Domain() string
- func (ce *CliEnv) GetAppInfo(ctx context.Context, subdomain string) (*graphql.GetWorkspacesApps_Workspaces_Apps, error)
- func (ce *CliEnv) GetNhostClient() *nhostclient.Client
- func (ce *CliEnv) Infoln(msg string, a ...any)
- func (ce *CliEnv) Link(ctx context.Context) (*graphql.GetWorkspacesApps_Workspaces_Apps, error)
- func (ce *CliEnv) LoadSession(ctx context.Context) (credentials.Session, error)
- func (ce *CliEnv) Login(ctx context.Context, email string, password string, pat string) (credentials.Credentials, error)
- func (ce *CliEnv) Println(msg string, a ...any)
- func (ce *CliEnv) ProjectName() string
- func (ce *CliEnv) PromptInput(hide bool) (string, error)
- func (ce *CliEnv) PromptMessage(msg string, a ...any)
- func (ce *CliEnv) Warnln(msg string, a ...any)
- type Column
- type PathStructure
- func (p PathStructure) AuthFile() string
- func (p PathStructure) DataFolder() string
- func (p PathStructure) DockerCompose() string
- func (p PathStructure) DotNhostFolder() string
- func (p PathStructure) HasuraConfig() string
- func (p PathStructure) NhostFolder() string
- func (p PathStructure) NhostToml() string
- func (p PathStructure) Overlay(subdomain string) string
- func (p PathStructure) OverlaysFolder() string
- func (p PathStructure) ProjectFile() string
- func (p PathStructure) Root() string
- func (p PathStructure) Secrets() string
- func (p PathStructure) WorkingDir() string
Constants ¶
View Source
const ( ANSIColorWhite = lipgloss.Color("15") ANSIColorCyan = lipgloss.Color("14") ANSIColorPurple = lipgloss.Color("13") ANSIColorBlue = lipgloss.Color("12") ANSIColorYellow = lipgloss.Color("11") ANSIColorGreen = lipgloss.Color("10") ANSIColorRed = lipgloss.Color("9") ANSIColorGray = lipgloss.Color("8") )
View Source
const ( IconInfo = "ℹ️" IconWarn = "⚠" )
Variables ¶
View Source
var ErrNoContent = fmt.Errorf("no content")
Functions ¶
func PathExists ¶
func PathStateHome ¶
func PathStateHome() string
Types ¶
type CliEnv ¶
type CliEnv struct { Path *PathStructure // contains filtered or unexported fields }
func (*CliEnv) GetAppInfo ¶
func (*CliEnv) GetNhostClient ¶
func (ce *CliEnv) GetNhostClient() *nhostclient.Client
func (*CliEnv) LoadSession ¶
func (*CliEnv) Login ¶
func (ce *CliEnv) Login( ctx context.Context, email string, password string, pat string, ) (credentials.Credentials, error)
func (*CliEnv) ProjectName ¶
func (*CliEnv) PromptMessage ¶
type PathStructure ¶
type PathStructure struct {
// contains filtered or unexported fields
}
func NewPathStructure ¶
func NewPathStructure( workingDir, root, dotNhostFolder, dataFolder, nhostFolder string, ) *PathStructure
func (PathStructure) AuthFile ¶
func (p PathStructure) AuthFile() string
func (PathStructure) DataFolder ¶
func (p PathStructure) DataFolder() string
func (PathStructure) DockerCompose ¶
func (p PathStructure) DockerCompose() string
func (PathStructure) DotNhostFolder ¶
func (p PathStructure) DotNhostFolder() string
func (PathStructure) HasuraConfig ¶
func (p PathStructure) HasuraConfig() string
func (PathStructure) NhostFolder ¶
func (p PathStructure) NhostFolder() string
func (PathStructure) NhostToml ¶
func (p PathStructure) NhostToml() string
func (PathStructure) Overlay ¶ added in v1.1.0
func (p PathStructure) Overlay(subdomain string) string
func (PathStructure) OverlaysFolder ¶ added in v1.1.0
func (p PathStructure) OverlaysFolder() string
func (PathStructure) ProjectFile ¶
func (p PathStructure) ProjectFile() string
func (PathStructure) Root ¶
func (p PathStructure) Root() string
func (PathStructure) Secrets ¶
func (p PathStructure) Secrets() string
func (PathStructure) WorkingDir ¶ added in v1.0.1
func (p PathStructure) WorkingDir() string
Click to show internal directories.
Click to hide internal directories.