core

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigPath      = ".ws"
	ConfigFile      = "config"
	ConfigType      = "yaml"
	EnvPrefix       = "WS"
	UpdateCacheFile = "update_cache.json"
)
View Source
const (
	Create = "create"
)
View Source
const (
	PersistentFlagConfig = "config"
)

persistent flags

Variables

View Source
var Version = "v0.0.0"

Functions

This section is empty.

Types

type AddInput

type AddInput struct {
	BaseInput
	ServiceRepoNames []string
	BaseBranchName   string
}

type BaseInput

type BaseInput struct {
	FeatBranchName string
	Cfg            *Config
}

func (*BaseInput) GetWorkspaceName

func (b *BaseInput) GetWorkspaceName() string

type Config

type Config struct {
	BaseReposPath     string `mapstructure:"base_repos"`
	BaseWorkspacePath string `mapstructure:"base_ws"`
	ReplaceSlashInDir bool   `mapstructure:"replace_slash"`
}

func GetConfig

func GetConfig() (*Config, error)

func (*Config) GetReposPath

func (c *Config) GetReposPath() string

func (*Config) GetSafeDirName

func (c *Config) GetSafeDirName(branchName string) string

func (*Config) GetWorkspacePath

func (c *Config) GetWorkspacePath() string

type DestroyInput

type DestroyInput struct {
	BaseInput
	Force bool
}

type OpenInput

type OpenInput struct {
	BaseInput
}

type RemoveInput

type RemoveInput struct {
	BaseInput
	ServiceRepoNames []string
}

type SyncInput

type SyncInput struct {
	ServiceRepoNames []string
	BaseBranchName   string
	Cfg              *Config
}

Jump to

Keyboard shortcuts

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