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.1"
Version is the current version of the application. It will be overwritten by goreleaser's ldflags during release builds.
Functions ¶
This section is empty.
Types ¶
type BaseInput ¶
func (*BaseInput) GetWorkspaceName ¶
type Config ¶
type Config struct {
BaseReposPath string `mapstructure:"base_repos"`
BaseWorkspacePath string `mapstructure:"base_ws"`
ReplaceSlashInDir bool `mapstructure:"replace_slash"`
Symlinks []Symlink `mapstructure:"symlinks"`
// CowDirs lists repo-relative directories (e.g. "kitex_gen") that should be
// copy-on-write cloned from the main repo into a new worktree. These are typically
// git-ignored codegen outputs with no global store to back them, so cloning them
// saves disk and time. Treated as a pure cache/warm-up: cloned as-is, no consistency
// check against the worktree's IDL.
CowDirs []string `mapstructure:"cow_dirs"`
}
func (*Config) GetReposPath ¶
func (*Config) GetSafeDirName ¶
func (*Config) GetWorkspacePath ¶
type DestroyInput ¶
type RemoveInput ¶
Click to show internal directories.
Click to hide internal directories.