manifest

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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

func SetTutorial

func SetTutorial(appRoot string, tutorial string) (err error)

SetTutorial sets the tutorial field on the app manifest

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"`

	// Tutorial is set to the name of the tutorial the user is currently on or empty.
	Tutorial string `json:"tutorial"`
}

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