Discover Packages
github.com/rickliujh/loom
pkg
config
package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Mar 18, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
ExpectedAPIVersion = "loom.rickliujh.github.io/v1beta1"
ExpectedKind = "Loom"
)
Validate checks that a LoomFile has required fields and valid structure.
type CommitPush struct {
Message string `yaml:"message"`
Author string `yaml:"author,omitempty"`
Email string `yaml:"email,omitempty"`
}
type DynamicParamDef struct {
Name string `yaml:"name"`
Command string `yaml:"command"`
Default string `yaml:"default,omitempty"`
}
DynamicParamDef defines a parameter whose value comes from a shell command.
The command is templated with all resolved params before execution.
Dynamic params are always evaluated after all regular params are resolved.
type LoomFile struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Metadata Metadata `yaml:"metadata"`
Spec Spec `yaml:"spec"`
}
LoomFile represents the top-level loom.yaml structure.
Load reads and parses a loom.yaml file from the given module directory.
type Metadata struct {
Name string `yaml:"name"`
}
type ModuleRef struct {
Name string `yaml:"name"`
Source string `yaml:"source"`
Params map[string ]string `yaml:"params,omitempty"`
}
type NewFiles struct {
Source string `yaml:"source"`
Dest string `yaml:"dest,omitempty"`
}
type Operation struct {
Name string `yaml:"name"`
NewFiles *NewFiles `yaml:"newFiles,omitempty"`
Patch *Patch `yaml:"patch,omitempty"`
Shell *Shell `yaml:"shell,omitempty"`
CommitPush *CommitPush `yaml:"commitPush,omitempty"`
PR *PR `yaml:"pr,omitempty"`
}
type PR struct {
Provider string `yaml:"provider"`
Title string `yaml:"title"`
Body string `yaml:"body,omitempty"`
BaseBranch string `yaml:"baseBranch,omitempty"`
Labels []string `yaml:"labels,omitempty"`
TokenEnv string `yaml:"tokenEnv,omitempty"`
}
type ParamDef struct {
Name string `yaml:"name"`
Required bool `yaml:"required,omitempty"`
Default string `yaml:"default,omitempty"`
}
type Patch struct {
Engine string `yaml:"engine,omitempty"`
Path string `yaml:"path"`
Target string `yaml:"target"`
}
type Shell struct {
Command string `yaml:"command"`
Timeout string `yaml:"timeout,omitempty"`
}
type Spec struct {
Params []ParamDef `yaml:"params,omitempty"`
DynamicParams []DynamicParamDef `yaml:"dynamicParams,omitempty"`
Excludes []string `yaml:"excludes,omitempty"`
Includes []string `yaml:"includes,omitempty"`
Target *TargetSpec `yaml:"target,omitempty"`
Modules []ModuleRef `yaml:"modules,omitempty"`
Operations []Operation `yaml:"operations,omitempty"`
}
type TargetSpec struct {
URL string `yaml:"url"`
Branch string `yaml:"branch,omitempty"`
FeatureBranch string `yaml:"featureBranch,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.