Documentation ¶
Index ¶
- Variables
- func BuildRun(r *cmd.Root, s *cmd.Sub)
- func ChrootRun(r *cmd.Root, s *cmd.Sub)
- func DeleteCacheRun(r *cmd.Root, s *cmd.Sub)
- func FindLikelyArg() string
- func IndexRun(r *cmd.Root, s *cmd.Sub)
- func InitRun(r *cmd.Root, s *cmd.Sub)
- func UpdateRun(r *cmd.Root, c *cmd.Sub)
- func VersionRun(_ *cmd.Root, _ *cmd.Sub)
- type BuildArgs
- type BuildFlags
- type ChrootArgs
- type DeleteCacheFlags
- type GlobalFlags
- type IndexArgs
- type IndexFlags
- type InitFlags
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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.
var Init = cmd.Sub{ Name: "init", Short: "Initialise a solbuild profile", Flags: &InitFlags{}, Run: InitRun, }
Init downloads a solbuid image and initializes the profile.
var Root = cmd.Root{ Name: "solbuild", Short: "solbuild is the Solus package builder", Flags: &GlobalFlags{}, }
Root is the root command for solbuild.
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.
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 DeleteCacheRun ¶
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.
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.