cmd

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Usage = "Install and upgrade immutable operating systems"

Variables

This section is empty.

Functions

func GlobalFlags

func GlobalFlags() []cli.Flag

func NewBuildCommand

func NewBuildCommand(appName string, action func(context.Context, *cli.Command) error) *cli.Command

func NewBuildInstallerCommand

func NewBuildInstallerCommand(appName string, action func(context.Context, *cli.Command) error) *cli.Command

func NewCustomizeCommand

func NewCustomizeCommand(appName string, action func(context.Context, *cli.Command) error) *cli.Command

func NewInitCommand

func NewInitCommand(appName string, action func(context.Context, *cli.Command) error) *cli.Command

func NewInstallCommand

func NewInstallCommand(appName string, action func(context.Context, *cli.Command) error) *cli.Command

func NewKernelModulesCommand

func NewKernelModulesCommand(appName string, action func(context.Context, *cli.Command) error) *cli.Command

func NewReleaseInfoCommand

func NewReleaseInfoCommand(appName string, releaseInfoAction func(context.Context, *cli.Command) error) *cli.Command

func NewResetCommand

func NewResetCommand(appName string, action func(context.Context, *cli.Command) error) *cli.Command

func NewUnpackImageCommand

func NewUnpackImageCommand(appName string, action func(context.Context, *cli.Command) error) *cli.Command

func NewUpgradeCommand

func NewUpgradeCommand(appName string, action func(context.Context, *cli.Command) error) *cli.Command

func NewVersionCommand

func NewVersionCommand(appName string) *cli.Command

func SetLoggerTarget

func SetLoggerTarget(s *sys.System, cmd *cli.Command) error

func Setup

func Setup(ctx context.Context, cmd *cli.Command) (context.Context, error)

func Teardown

func Teardown(_ context.Context, _ *cli.Command) error

Types

type BuildFlags

type BuildFlags struct {
	ImageType  string
	Platform   string
	ConfigDir  string
	BuildDir   string
	OutputPath string
	Local      bool
}
var BuildArgs BuildFlags

type CustomizeFlags

type CustomizeFlags struct {
	ConfigDir  string
	OutputPath string
	Mode       string
	Platform   string
	MediaType  string
	Local      bool
}
var CustomizeArgs CustomizeFlags

type InitFlags

type InitFlags struct {
	TargetDir string
}
var InitArgs InitFlags

type InstallFlags

type InstallFlags struct {
	OperatingSystemImage string
	Target               string
	Description          string
	ConfigScript         string
	Overlay              string
	CreateBootEntry      bool
	Bootloader           string
	KernelCmdline        string
	Verify               bool
	Local                bool
	CryptoPolicy         string
	Snapshotter          string
}
var InstallArgs InstallFlags

type InstallerFlags

type InstallerFlags struct {
	InstallSpec          InstallFlags
	OperatingSystemImage string
	ConfigScript         string
	Local                bool
	Verify               bool
	Name                 string
	OutputDir            string
	Overlay              string
	Label                string
	KernelCmdLine        string
	Type                 string
}
var InstallerArgs InstallerFlags

type KernelModulesFlags

type KernelModulesFlags struct {
	Reload bool
	Unload bool
}
var KernelModulesArgs KernelModulesFlags

type ReleaseInfoFlags

type ReleaseInfoFlags struct {
	Local    bool
	Markdown bool
}
var ReleaseInfoArgs ReleaseInfoFlags

type UnpackFlags

type UnpackFlags struct {
	Image     string
	TargetDir string
	Platform  string
	Local     bool
	Verify    bool
}
var UnpackArgs UnpackFlags

type UpgradeFlags

type UpgradeFlags struct {
	OperatingSystemImage string
	ConfigScript         string
	Overlay              string
	Verify               bool
	CreateBootEntry      bool
	Local                bool
}
var UpgradeArgs UpgradeFlags

Jump to

Keyboard shortcuts

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