utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CARGO_TOML = "Cargo.toml"
	CARGO_LOCK = "Cargo.lock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppMetadata

type AppMetadata struct {
	Package PackageMetadata `toml:"package"`
}

func ParseAppMetadata

func ParseAppMetadata(appDir string) (AppMetadata, error)

type CommandRunner

type CommandRunner struct {
}

func (CommandRunner) Run

func (r CommandRunner) Run(bin, dir string, args ...string) error

type Config

type Config struct {
	Rustup struct {
		Version string `yaml:"version"`
	} `yaml:"rustup"`
	Rust struct {
		Version string `yaml:"version"`
	} `yaml:"rust"`
}

func ParseConfig

func ParseConfig(appDir string) (Config, error)

type PackageMetadata

type PackageMetadata struct {
	Name    string
	Version string
	Authors []string
}

Jump to

Keyboard shortcuts

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