pubspec

package
v0.46.6-0...-87ab5ee Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 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

func (p PubSpec) GetAuthor() string

func (PubSpec) GetDescription

func (p PubSpec) GetDescription() string

func (PubSpec) GetVersion

func (p PubSpec) GetVersion() string

Jump to

Keyboard shortcuts

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