psximager

package
v0.0.0-...-6e72cc2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package psximager provides a simple API wrapper around psximager's psxbuild tool. See https://github.com/cebix/psximager. This package is not intended to be used directly.

Code contained in the psxinject.go file wraps the psxinject tool which is part of the psximager tool suite.

Index

Examples

Constants

View Source
const (
	// PsxInject is the name of to the psxinject executable.
	PsxInject = "psxinject"
)

Variables

This section is empty.

Functions

func Execute

func Execute(psximagerPath, cueFile, orgFile, injectFile string) error

Execute runs an inject command given a cue file, the original file to overwrite inside the image, and the file which shall be injected.

Example

ExampleExecute executes the psxinject command. Modify paths to match your environment.

package main

import (
	"fmt"

	"github.com/christowolf/vagrant-story-randomizer/internal/psximager"
)

func main() {
	err := psximager.Execute("./psximager", "cueFile.cue", "orgFile", "injectFile")
	if err != nil {
		fmt.Println(err)
	}
}
Output:

func NewPipedCmd

func NewPipedCmd(pwd string, name string, args ...string) *exec.Cmd

NewPipedCmd returns a new exec.Cmd that is configured to run a named command in a piped manner inside the given working directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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