list

package
v0.6.7-385-g8588b69 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type ListOptions

type ListOptions struct {
	All       bool   `long:"all" usage:"Show everything"`
	Arch      string `long:"arch" usage:"Set a specific arhitecture to list for"`
	Plat      string `long:"plat" usage:"Set a specific platform to list for"`
	Kraftfile string `long:"kraftfile" short:"K" usage:"Set an alternative path of the Kraftfile"`
	Limit     int    `long:"limit" short:"l" usage:"Set the maximum number of results" default:"50"`
	NoLimit   bool   `long:"no-limit" usage:"Do not limit the number of items to print"`
	Output    string `long:"output" short:"o" usage:"Set output format" default:"table"`
	ShowApps  bool   `long:"apps" short:"" usage:"Show applications"`
	ShowArchs bool   `long:"archs" short:"M" usage:"Show architectures"`
	ShowCore  bool   `long:"core" short:"C" usage:"Show Unikraft core versions"`
	ShowLibs  bool   `long:"libs" short:"L" usage:"Show libraries"`
	ShowPlats bool   `long:"plats" short:"P" usage:"Show platforms"`
	Update    bool   `long:"update" short:"u" usage:"Get latest information about components before listing results"`
}

func (*ListOptions) Pre

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

func (*ListOptions) Run

func (opts *ListOptions) 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