manifest

package
v1.35.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package manifest reads and writes Encore app manifests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	// AppID is a unique identifier for the app.
	// It uses the encore.dev app slug if the app
	// is linked, and is otherwise a randomly generated id.
	AppID string `json:"appID,omitempty"`

	// LocalID is a unique id for the app that's only used locally.
	// It is randomly generated on first use.
	LocalID string `json:"local_id"`
}

Manifest represents the persisted manifest for an Encore application. It is not intended to be committed to source control.

func ReadOrCreate

func ReadOrCreate(appRoot string) (mf *Manifest, err error)

ReadOrCreate reads the manifest for the app rooted at appRoot. If it doesn't exist it creates it first.

Jump to

Keyboard shortcuts

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