manifest

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MPL-2.0 Imports: 10 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"`
}

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