naos

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Path       string `json:"path"`
	Registry   string `json:"registry"`
	Repository string `json:"repository"`
	Version    string `json:"version"`
}

A Component represents an installable component.

type Frameworks added in v0.10.0

type Frameworks struct {
	Audio string `json:"audio,omitempty"`
}

Frameworks represents the official frameworks.

type Manifest added in v0.14.0

type Manifest struct {
	Name       string                `json:"name"`
	Version    string                `json:"version"`
	Target     string                `json:"target"`
	BaudRate   string                `json:"baud_rate,omitempty"`
	TagPrefix  string                `json:"tag_prefix,omitempty"`
	Embeds     []string              `json:"embeds"`
	Overrides  map[string]string     `json:"overrides"`
	Partitions *tree.Partitions      `json:"partitions"`
	Components map[string]*Component `json:"components"`
	Frameworks Frameworks            `json:"frameworks,omitempty"`
}

A Manifest represents the contents of the manifest file.

func NewManifest added in v0.14.0

func NewManifest() *Manifest

NewManifest creates a new Manifest.

func ReadManifest added in v0.14.0

func ReadManifest(path string) (*Manifest, error)

ReadManifest will attempt to read the manifest file at the specified path.

func (*Manifest) Save added in v0.14.0

func (m *Manifest) Save(path string) error

Save will write the manifest file to the specified path.

type Project

type Project struct {
	Location string
	Manifest *Manifest
}

A Project is a project available on disk.

func CreateProject

func CreateProject(path string, force, cmake bool, out io.Writer) (*Project, error)

CreateProject will initialize a project in the specified directory. If out is not nil, it will be used to log information about the process.

func OpenProject

func OpenProject(path string) (*Project, error)

OpenProject will open the project in the specified path.

func (*Project) Attach

func (p *Project) Attach(device string, out io.Writer, in io.Reader) error

Attach will attach to the attached device.

func (*Project) Build

func (p *Project) Build(clean, reconfigure, appOnly bool, out io.Writer) error

Build will build the project.

func (*Project) Bundle added in v0.13.2

func (p *Project) Bundle(file string, out io.Writer) error

Bundle will create a bundle of the project.

func (*Project) Config added in v0.8.0

func (p *Project) Config(file, device, baudRate string, out io.Writer) error

Config will write settings and parameters to an attached device.

func (*Project) Exec added in v0.10.0

func (p *Project) Exec(cmd string, out io.Writer, in io.Reader) error

Exec will execute a command withing the tree.

func (*Project) Flash

func (p *Project) Flash(device, baudRate string, erase bool, appOnly, alt bool, out io.Writer) error

Flash will flash the project to the attached device.

func (*Project) Format

func (p *Project) Format(out io.Writer) error

Format will format all source files in the project if 'clang-format' is available.

func (*Project) Install

func (p *Project) Install(force bool, out io.Writer) error

Install will download necessary dependencies. Any existing dependencies will be removed if force is set to true. If out is not nil, it will be used to log information about the process.

func (*Project) SaveManifest added in v0.14.0

func (p *Project) SaveManifest() error

SaveManifest will save the associated manifest to disk.

func (*Project) Tree

func (p *Project) Tree() string

Tree returns the internal directory used to store the toolchain, development framework and other necessary files.

Jump to

Keyboard shortcuts

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