go-james: github.com/pieterclaerhout/go-james Index | Files | Directories

package james

import "github.com/pieterclaerhout/go-james"

Package james is your butler and helps you to create, build, debug, test and run your Go projects.

Read all about it on https://github.com/pieterclaerhout/go-james

Index

Package Files

args_parser.go build_args.go library.go mac_app_package.go

Variables

var (
    // ErrArgsMissing is what is returned when no arguments could be found
    ErrArgsMissing = errors.New("No arguments were found")

    // ErrArgsDecodeError is what is returned when the arguments could be decoded (empty or invalid JSON)
    ErrArgsDecodeError = errors.New("Failed to decoce arguments")
)

type BuildArgs Uses

type BuildArgs struct {
    ProjectPath        string   `json:"project_path,omitempty"`        // The root path of the project
    OutputPath         string   `json:"output_path,omitempty"`         // The absolute build path
    GOOS               string   `json:"GOOS,omitempty"`                // The GOOS for which was compiled
    GOARCH             string   `json:"GOARCH,omitempty"`              // The GOARCH for which was compiled
    ProjectName        string   `json:"project_name,omitempty"`        // The project name
    ProjectDescription string   `json:"project_description,omitempty"` // The project description
    ProjectCopyright   string   `json:"project_copyright,omitempty"`   // The project copyright
    Version            string   `json:"version,omitempty"`             // The version info
    Revision           string   `json:"revision,omitempty"`            // The project revision
    Branch             string   `json:"branch,omitempty"`              // The project branch
    RawBuildCommand    []string `json:"raw_build_command,omitempty"`   // The raw build command which is executed
}

BuildArgs are the arguments which are passed to the pre_build.go and post_build.go scripts

func ParseBuildArgs Uses

func ParseBuildArgs() (BuildArgs, error)

ParseBuildArgs parses the build arguments from os.Args

type MacAppPackage Uses

type MacAppPackage struct {
    ExecutablePath   string // The path to the executable
    IconPath         string // The path to the icon (should be a PNG file)
    InfoString       string // The info string shown in the about dialog
    BundleIdentifier string // The bundle identifier (if empty, the basename of the executable is used)
    BundleName       string // The name of the bundle (if empty, the basename of the executable is used)
}

MacAppPackage can be used to create a .app package for mac

func NewMacAppPackage Uses

func NewMacAppPackage(executablePath string, iconPath string) *MacAppPackage

NewMacAppPackage returns a new MacAppPackage instance for the executable and icon

func (*MacAppPackage) Create Uses

func (macAppPackage *MacAppPackage) Create() error

Create creates the .app package (moving the executable into the package)

Directories

PathSynopsis
cmd/builder
cmd/cleaner
cmd/creator
cmd/debugger
cmd/go-james
cmd/installer
cmd/packager
cmd/runner
cmd/tester
cmd/uninstaller
cmd/updater
cmd/version
internal
internal/builder
internal/cleaner
internal/common
internal/config
internal/creator
internal/debugger
internal/installer
internal/packager
internal/runner
internal/tester
internal/uninstaller
internal/updater
internal/version
versioninfo

Package james imports 9 packages (graph). Updated 2019-11-19. Refresh now. Tools for package owners.