prj

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 12 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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDocument added in v0.41.0

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

AddDocument 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