add

package
v0.7.11-27-gdbee4fb3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, opts *AddOptions, args ...string) error

Add adds a Unikraft library to the project directory and updates the Kraftfile

func NewCmd

func NewCmd() *cobra.Command

Types

type AddOptions

type AddOptions struct {
	Kraftfile string `long:"kraftfile" short:"K" usage:"Set an alternative path of the Kraftfile"`
	NoUpdate  bool   `long:"no-update" usage:"Do not update package index before running the build"`
	Workdir   string `long:"workdir" short:"w" usage:"workdir to add the package to"`
}

func (*AddOptions) Pre

func (opts *AddOptions) Pre(cmd *cobra.Command, _ []string) error

func (*AddOptions) Run

func (opts *AddOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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