Documentation
¶
Index ¶
- Variables
- func GetScriptContent(name string) string
- func ListConfigs() []string
- func PrintFullList()
- func PrintShortList()
- type Project
- func (proj Project) Archive(archivedescr string) error
- func (proj Project) CalcDestination(instr string) string
- func (proj Project) Confess()
- func (proj *Project) InitializeProject(projtype string, safe bool) error
- func (proj *Project) InjectExternal()
- func (proj *Project) InjectProjectType(projtype string) error
- func (proj Project) ListFiles() []string
- func (proj Project) LoadFile(target string) (string, error)
- func (proj Project) NameIsValid() bool
- func (proj *Project) Open() error
- func (proj Project) Parse(templatestring string) string
- func (proj Project) ProcessTarget(element *Target) error
- func (proj Project) ProjectConfigFile() string
- func (proj *Project) Read(reader io.Reader) error
- func (proj *Project) RefreshStruct(args ...string) error
- func (proj Project) Save() error
- func (proj *Project) SetDescription(instr ...string)
- func (proj Project) Write(writer io.Writer) error
- type Repo
- type Target
Constants ¶
This section is empty.
Variables ¶
View Source
var Content embed.FS
Functions ¶
func GetScriptContent ¶
func ListConfigs ¶
func ListConfigs() []string
Types ¶
type Project ¶
type Project struct { Name string `json:"name"` ProjectType string `json:"type"` Description string `json:"description"` Directory string `json:"directory"` SetupActions []string `json:"setupactions"` Repos []Repo `json:"repos"` Targets []Target `json:"targets"` Root string `json:"root"` // Root type of the project directory or git url HomeDir string `json:"-"` ProjectTypeDir string `json:"-"` // Directory where project type files are located Pattern string `json:"-"` // pattern obtained from ProjectType GOARCH string `json:"-"` // target architecture GOOS string `json:"-"` // target operating system GOPATH string `json:"-"` // Go paths USER string `json:"-"` // Username Exists bool `json:"-"` // project exists }
Project defines a structure of a project
func NewProject ¶
NewProject initialize a Project object
func (Project) CalcDestination ¶
func (*Project) InitializeProject ¶
func (*Project) InjectExternal ¶
func (proj *Project) InjectExternal()
func (*Project) InjectProjectType ¶
func (Project) NameIsValid ¶
func (Project) ProcessTarget ¶
func (Project) ProjectConfigFile ¶
func (*Project) RefreshStruct ¶
RefreshStruct refreshes the project structure by loading the project configuration file. It checks if the project exists and if not, it injects the project type configuration.
func (*Project) SetDescription ¶
Click to show internal directories.
Click to hide internal directories.