Documentation ¶
Index ¶
- func GetRailwayURL() string
- func IsDevMode() bool
- func IsStagingMode() bool
- type Config
- type Configs
- func (c *Configs) CreatePathIfNotExist(path string) error
- func (c *Configs) GetCurrentEnvironment() (string, error)
- func (c *Configs) GetProject() (string, error)
- func (c *Configs) GetProjectConfigs() (*entity.ProjectConfig, error)
- func (c *Configs) GetRootConfigs() (*entity.RootConfig, error)
- func (c *Configs) GetUserConfigs() (*entity.UserConfig, error)
- func (c *Configs) RemoveProjectConfigs(cfg *entity.ProjectConfig) error
- func (c *Configs) SetEnvironment(environmentId string) error
- func (c *Configs) SetNewProject(projectID string) error
- func (c *Configs) SetProject(projectID string) error
- func (c *Configs) SetProjectConfigs(cfg *entity.ProjectConfig) error
- func (c *Configs) SetRootConfig(cfg *entity.RootConfig) error
- func (c *Configs) SetUserConfigs(cfg *entity.UserConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRailwayURL ¶
func GetRailwayURL() string
func IsStagingMode ¶
func IsStagingMode() bool
Types ¶
type Configs ¶
type Configs struct { RailwayProductionToken string RailwayEnvFilePath string // contains filtered or unexported fields }
func (*Configs) CreatePathIfNotExist ¶
func (*Configs) GetCurrentEnvironment ¶
func (*Configs) GetProject ¶
func (*Configs) GetProjectConfigs ¶
func (c *Configs) GetProjectConfigs() (*entity.ProjectConfig, error)
func (*Configs) GetRootConfigs ¶
func (c *Configs) GetRootConfigs() (*entity.RootConfig, error)
func (*Configs) GetUserConfigs ¶
func (c *Configs) GetUserConfigs() (*entity.UserConfig, error)
func (*Configs) RemoveProjectConfigs ¶
func (c *Configs) RemoveProjectConfigs(cfg *entity.ProjectConfig) error
func (*Configs) SetEnvironment ¶
func (*Configs) SetNewProject ¶
SetNewProject configures railway project for current working directory
func (*Configs) SetProject ¶
func (*Configs) SetProjectConfigs ¶
func (c *Configs) SetProjectConfigs(cfg *entity.ProjectConfig) error
func (*Configs) SetRootConfig ¶
func (c *Configs) SetRootConfig(cfg *entity.RootConfig) error
func (*Configs) SetUserConfigs ¶
func (c *Configs) SetUserConfigs(cfg *entity.UserConfig) error
Click to show internal directories.
Click to hide internal directories.