prj

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProjectDocument

func CreateProjectDocument(prjDir string, docType string, name string) (string, error)

CreateDocument creates a new document inside the project

func MakeDocumentName

func MakeDocumentName(docType string, name string) string

MakeDocumentName creates a new document name

func OpenEditor

func OpenEditor(d string) error

OpenEditor opens the project directory in a editor

func OpenStudio

func OpenStudio(d string) error

func PackProject

func PackProject(source string, target string) (string, error)

PackProject packs the project into a zip file

Types

type DemoType

type DemoType string
const (
	DemoModule   DemoType = "module"
	DemoSolution DemoType = "solution"
	DemoScenario DemoType = "scenario"
)

type DocumentInfo

type DocumentInfo struct {
	Name string
	Path string
	Type string
}

type ProjectInfo

type ProjectInfo struct {
	Name      string         `json:"name"`
	Path      string         `json:"path"`
	Documents []DocumentInfo `json:"documents"`
}

func CurrentProject

func CurrentProject() *ProjectInfo

func GetProjectInfo

func GetProjectInfo(d string) (*ProjectInfo, error)

func ImportProject

func ImportProject(repo string, dir string) (*ProjectInfo, error)

ImportProject imports a project from a zip file

func InitProject

func InitProject(d string) (*ProjectInfo, error)

InitProject initializes a new project inside destination

func OpenProject

func OpenProject(source string) (*ProjectInfo, error)

func ReadProject added in v0.20.0

func ReadProject(d string) (*ProjectInfo, error)

func RecentProjectInfos

func RecentProjectInfos() []*ProjectInfo

Jump to

Keyboard shortcuts

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