configs

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRailwayURL added in v0.2.18

func GetRailwayURL() string

func IsDevMode

func IsDevMode() bool

func IsStagingMode added in v0.2.31

func IsStagingMode() bool

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type Configs

type Configs struct {
	RailwayProductionToken string
	RailwayEnvFilePath     string
	// contains filtered or unexported fields
}

func New

func New() *Configs

func (*Configs) CreatePathIfNotExist

func (c *Configs) CreatePathIfNotExist(path string) error

func (*Configs) GetCurrentEnvironment added in v0.2.41

func (c *Configs) GetCurrentEnvironment() (string, error)

func (*Configs) GetProject

func (c *Configs) GetProject() (string, error)

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) MigrateLocalProjectConfig

func (c *Configs) MigrateLocalProjectConfig() error

MigrateLocalProjectConfig moves a local project config to the global config and removes the local .railway directory if it exists

func (*Configs) RemoveProjectConfigs added in v0.1.26

func (c *Configs) RemoveProjectConfigs(cfg *entity.ProjectConfig) error

func (*Configs) SetEnvironment

func (c *Configs) SetEnvironment(environmentId string) error

func (*Configs) SetNewProject

func (c *Configs) SetNewProject(projectID string) error

SetNewProject configures railway project for current working directory

func (*Configs) SetProject

func (c *Configs) SetProject(projectID string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL