configs

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRailwayURL

func GetRailwayURL() string

func IsDevMode

func IsDevMode() bool

func IsStagingMode

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

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

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