pubspec

package
v0.47.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSpec

type PubSpec struct {
	Name         string
	Description  string
	Version      string
	Author       string
	Dependencies map[string]interface{}
	Flutter      map[string]interface{}
}

PubSpec contains the parsed contents of pubspec.yaml

func GetPubSpec

func GetPubSpec() PubSpec

GetPubSpec returns the working directory pubspec.yaml as a PubSpec

func ReadPubSpecFile

func ReadPubSpecFile(pubSpecPath string) (*PubSpec, error)

ReadPubSpecFile reads a .yaml file at a path and return a correspond PubSpec struct

func (PubSpec) GetAuthor added in v0.41.3

func (p PubSpec) GetAuthor() string

func (PubSpec) GetDescription added in v0.41.3

func (p PubSpec) GetDescription() string

func (PubSpec) GetVersion added in v0.41.3

func (p PubSpec) GetVersion() string

Jump to

Keyboard shortcuts

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