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 Printlist(ce *CliEnv, orgs *graphql.GetOrganizationsAndWorkspacesApps) error
- func Table(columns ...Column) string
- func UnmarshalFile(filepath string, v any, f func([]byte, any) error) error
- type CliEnv
- func (ce *CliEnv) AuthURL() string
- func (ce *CliEnv) Branch() string
- func (ce *CliEnv) GetAppInfo(ctx context.Context, subdomain string) (*graphql.AppSummaryFragment, error)
- func (ce *CliEnv) GetNhostClient(ctx context.Context) (*nhostclient.Client, error)
- func (ce *CliEnv) GetNhostPublicClient() (*nhostclient.Client, error)
- func (ce *CliEnv) GraphqlURL() string
- func (ce *CliEnv) Infoln(msg string, a ...any)
- func (ce *CliEnv) Link(ctx context.Context) (*graphql.AppSummaryFragment, error)
- func (ce *CliEnv) LoadSession(ctx context.Context) (credentials.Session, error)
- func (ce *CliEnv) LocalSubdomain() string
- func (ce *CliEnv) Login(ctx context.Context, pat string, email string, password 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) Functions() 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) RunServiceOverlay(configPath, subdomain string) string
- func (p PathStructure) RunServiceOverlaysFolder(configPath string) 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 = errors.New("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 (*CliEnv) GetNhostPublicClient ¶ added in v1.18.1
func (ce *CliEnv) GetNhostPublicClient() (*nhostclient.Client, error)
func (*CliEnv) GraphqlURL ¶ added in v1.28.2
func (*CliEnv) LoadSession ¶
func (*CliEnv) LocalSubdomain ¶ added in v1.22.1
func (*CliEnv) Login ¶
func (ce *CliEnv) Login( ctx context.Context, pat string, email string, password 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) Functions ¶ added in v1.18.3
func (p PathStructure) Functions() 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) RunServiceOverlay ¶ added in v1.13.0
func (p PathStructure) RunServiceOverlay(configPath, subdomain string) string
func (PathStructure) RunServiceOverlaysFolder ¶ added in v1.13.0
func (p PathStructure) RunServiceOverlaysFolder(configPath string) 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.