cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(dir string, attribute string) error

Build invokes nix build to build the project

func CleanNameFromGraph

func CleanNameFromGraph(s string) string

CleanNameFromGraph removes leading and trailing double quotes and escape characters

func Develop

func Develop() error

Develop opens a BSF development shell

func GetDrvPathFromResult

func GetDrvPathFromResult(output string, symlink string) (string, error)

GetDrvPathFromResult returns the derivation

func GetNarHashFromPath

func GetNarHashFromPath(path string) (string, error)

GetNarHashFromPath returns the sha256 hash of the nar

func Lock

func Lock() error

Lock generates the Nix flake lock file

func ManageStdErr added in v0.2.1

func ManageStdErr(stderr io.ReadCloser) error

func ManageStdOutput added in v0.2.1

func ManageStdOutput(stdout io.ReadCloser) error

func NixShowConfig

func NixShowConfig() (map[string]string, error)

NixShowConfig returns a map of nix configuration values

func NixVersion

func NixVersion() (string, error)

NixVersion returns the current nix version

func Run

func Run() error

Run runs the project after building it based on instructions defined in bsf.hcl.

Types

type App

type App struct {
	Name         string
	Version      string
	AppType      sbom.Purpose
	ResultHash   string
	ResultDigest string
	BinaryHash   string
}

App represents the application

func GetAppDetails

func GetAppDetails(output string, symlink string) (*App, error)

GetAppDetails checks if the symlink exists

func GetRuntimeClosureGraph

func GetRuntimeClosureGraph(appName, output string, symlink string) (*App, *gographviz.Graph, error)

GetRuntimeClosureGraph returns the runtime closure graph for the project TODO: we should look into adding metadata about licenses, homepage into the graph

Jump to

Keyboard shortcuts

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