cli

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Build = cmd.Sub{
	Name:  "build",
	Short: "Build the given package(s) in a chroot environment",
	Flags: &BuildFlags{},
	Args:  &BuildArgs{},
	Run:   BuildRun,
}

Build package(s) in a chroot and output the archives.

View Source
var Chroot = cmd.Sub{
	Name:  "chroot",
	Short: "Interactively chroot into the package's build environment",
	Args:  &ChrootArgs{},
	Run:   ChrootRun,
}

Chroot opens an interactive shell inside the chroot environment.

View Source
var DeleteCache = cmd.Sub{
	Name:  "delete-cache",
	Alias: "dc",
	Short: "Delete assets stored on disk by solbuild",
	Flags: &DeleteCacheFlags{},
	Run:   DeleteCacheRun,
}

DeleteCache cleans up the solbuild caches to free up disk space.

View Source
var Index = cmd.Sub{
	Name:  "index",
	Short: "Create repo index in the given directory",
	Flags: &IndexFlags{},
	Args:  &IndexArgs{},
	Run:   IndexRun,
}

Index generates index files for a local repository.

View Source
var Init = cmd.Sub{
	Name:  "init",
	Short: "Initialise a solbuild profile",
	Flags: &InitFlags{},
	Run:   InitRun,
}

Init downloads a solbuid image and initializes the profile.

View Source
var Root = cmd.Root{
	Name:  "solbuild",
	Short: "solbuild is the Solus package builder",
	Flags: &GlobalFlags{},
}

Root is the root command for solbuild.

View Source
var Update = cmd.Sub{
	Name:  "update",
	Alias: "up",
	Short: "Update a solbuild profile",
	Run:   UpdateRun,
}

Update updates a solbuild image with the latest available packages.

View Source
var Version = cmd.Sub{
	Name:  "version",
	Short: "Print the solbuild version and exit",
	Run:   VersionRun,
}

Version prints out the version of this executable.

Functions

func BuildRun

func BuildRun(r *cmd.Root, s *cmd.Sub)

BuildRun carries out the "build" sub-command.

func ChrootRun

func ChrootRun(r *cmd.Root, s *cmd.Sub)

ChrootRun carries out the "chroot" sub-command.

func DeleteCacheRun

func DeleteCacheRun(r *cmd.Root, s *cmd.Sub)

DeleteCacheRun carries out the "delete-cache" sub-command.

func FindLikelyArg

func FindLikelyArg() string

FindLikelyArg will look in the current directory to see if common path names exist, for when it is acceptable to omit a filename.

func IndexRun

func IndexRun(r *cmd.Root, s *cmd.Sub)

IndexRun carries out the "index" sub-command.

func InitRun

func InitRun(r *cmd.Root, s *cmd.Sub)

InitRun carries out the "init" sub-command.

func UpdateRun

func UpdateRun(r *cmd.Root, c *cmd.Sub)

UpdateRun carries out the "update" sub-command.

func VersionRun

func VersionRun(_ *cmd.Root, _ *cmd.Sub)

VersionRun carries out the "version" sub-command.

Types

type BuildArgs

type BuildArgs struct {
	Path []string `zero:"yes" desc:"Location of [package.yml|pspec.xml] file to build."`
}

BuildArgs are arguments for the "build" sub-command.

type BuildFlags

type BuildFlags struct {
	Tmpfs           bool   `short:"t" long:"tmpfs"              desc:"Enable building in a tmpfs"`
	Memory          string `short:"m" long:"memory"             desc:"Set the tmpfs size to use, e.g. 8G"`
	TransitManifest string `          long:"transit-manifest"   desc:"Create transit manifest for the given target"`
	ABIReport       bool   `short:"r" long:"disable-abi-report" desc:"Don't generate an ABI report of the completed build"`
	History         bool   `short:"h" long:"history"            desc:"Enable history generation for this build"`
}

BuildFlags are flags for the "build" sub-command.

type ChrootArgs

type ChrootArgs struct {
	Path []string `zero:"yes" desc:"Chroot into the environment for a [package.yml|pspec.xml] receipe."`
}

ChrootArgs are arguments for the "chroot" sub-command.

type DeleteCacheFlags

type DeleteCacheFlags struct {
	All    bool `short:"a" long:"all"    desc:"Additionally delete (s)ccache, packages and sources"`
	Images bool `short:"i" long:"images" desc:"Additionally delete solbuild images"`
	Sizes  bool `short:"s" long:"sizes"  desc:"Show disk usage of the caches"`
}

DeleteCacheFlags are the flags for the "delete-cache" sub-command.

type GlobalFlags

type GlobalFlags struct {
	Debug   bool   `short:"d" long:"debug"    desc:"Enable debug message"`
	NoColor bool   `short:"n" long:"no-color" desc:"Disable color output"`
	Profile string `short:"p" long:"profile"  desc:"Build profile to use"`
}

GlobalFlags are available to all sub-commands.

type IndexArgs

type IndexArgs struct {
	Dir string `desc:"Output directory the generated index files"`
}

IndexArgs are args for the "index" sub-command.

type IndexFlags

type IndexFlags struct {
	Tmpfs  bool   `short:"t" long:"tmpfs"  desc:"Enable building in a tmpfs"`
	Memory string `short:"m" long:"memory" desc:"Set the tmpfs size to use"`
}

IndexFlags are flags for the "index" sub-command.

type InitFlags

type InitFlags struct {
	AutoUpdate bool `short:"u" long:"update" desc:"Automatically update the new image"`
}

InitFlags are flags for the "init" sub-command.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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