configs

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDevMode

func IsDevMode() 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) GetEnvironment

func (c *Configs) GetEnvironment() (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