Documentation
¶
Index ¶
- Variables
- func AddAppToLocalProject(appDir string) error
- func ExistsInFolder(folder string) bool
- func ExistsLocal() bool
- func GetGlobalDirectory() string
- func GlobalInitializeConfig(mc Config) error
- func InitializeConfig(mc Config, configFile string) error
- func UpsertGlobalConfig(mc Config) error
- func UpsertGlobalOrganizationID(organizationID string) error
- func UpsertGlobalProject(project models.Project) error
- func UpsertLocalWorkspace(workspace ConfigProject) error
- func UpsertOrganizationID(organizationID string) error
- func UpsertProject(project models.Project) error
- type Config
- type ConfigProject
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ManifestConfigFile = ".hx" ManifestSecretFile = ".hxkey" )
View Source
var FS fsutil.FileSystem = fsutil.NewFileSystem()
Functions ¶
func AddAppToLocalProject ¶
func ExistsInFolder ¶
func ExistsLocal ¶
func ExistsLocal() bool
func GetGlobalDirectory ¶
func GetGlobalDirectory() string
func GlobalInitializeConfig ¶
func InitializeConfig ¶
func UpsertGlobalConfig ¶
func UpsertGlobalProject ¶ added in v0.17.0
func UpsertLocalWorkspace ¶
func UpsertLocalWorkspace(workspace ConfigProject) error
func UpsertOrganizationID ¶
func UpsertProject ¶ added in v0.17.0
Types ¶
type Config ¶
type Config struct {
ProjectName *string `json:"project_name,omitempty"`
ProjectId *string `json:"project_id,omitempty"`
ProjectAlternateId *string `json:"project_alternate_id,omitempty"`
AppName *string `json:"app_name,omitempty"`
AppId *string `json:"app_id,omitempty"`
AppAlternateId *string `json:"app_alternate_id,omitempty"`
OrganizationId string `json:"organization_id,omitempty"`
HyphenAccessToken *string `json:"hyphen_access_token,omitempty"`
HyphenRefreshToken *string `json:"hyphen_refresh_token,omitempty"`
HypenIDToken *string `json:"hyphen_id_token,omitempty"`
ExpiryTime *int64 `json:"expiry_time,omitempty"`
HyphenAPIKey *string `json:"hyphen_api_key,omitempty"`
IsMonorepo *bool `json:"is_monorepo,omitempty"`
Project *ConfigProject `json:"project,omitempty"`
Database interface{} `json:"database,omitempty"`
}
func RestoreConfig ¶
func RestoreConfigFromFile ¶
func RestoreGlobalConfig ¶
func RestoreLocalConfig ¶
func (*Config) IsMonorepoProject ¶
type ConfigProject ¶ added in v0.17.0
type ConfigProject struct {
Apps []string `json:"app"`
}
func (*ConfigProject) AddApp ¶ added in v0.17.0
func (w *ConfigProject) AddApp(appDir string)
Click to show internal directories.
Click to hide internal directories.