prj

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 11 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 RecentProjectInfos

func RecentProjectInfos() []*ProjectInfo

Jump to

Keyboard shortcuts

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