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) (*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) (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) EnvDevelopment() string
- func (p PathStructure) HasuraConfig() string
- func (p PathStructure) NhostFolder() string
- func (p PathStructure) NhostToml() string
- func (p PathStructure) ProjectFile() string
- func (p PathStructure) Root() string
- func (p PathStructure) Secrets() 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, ) (credentials.Credentials, error)
func (*CliEnv) ProjectName ¶
func (*CliEnv) PromptMessage ¶
type PathStructure ¶
type PathStructure struct {
// contains filtered or unexported fields
}
func NewPathStructure ¶
func NewPathStructure( 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) EnvDevelopment ¶
func (p PathStructure) EnvDevelopment() 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) ProjectFile ¶
func (p PathStructure) ProjectFile() string
func (PathStructure) Root ¶
func (p PathStructure) Root() string
func (PathStructure) Secrets ¶
func (p PathStructure) Secrets() string
Click to show internal directories.
Click to hide internal directories.