talos/internal/integration/cli/images.go
Andrew Rynhard c693e556d2 feat: add images command
This adds a command that lists all of the images used by Talos. This is
useful in the case of airgap installs, so that users will know which images
to pull.

Signed-off-by: Andrew Rynhard <andrew@rynhard.io>
2020-09-18 12:55:08 -07:00

31 lines
686 B
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// +build integration_cli
package cli
import (
"github.com/talos-systems/talos/internal/integration/base"
)
// ImagesSuite verifies the images command.
type ImagesSuite struct {
base.CLISuite
}
// SuiteName ...
func (suite *ImagesSuite) SuiteName() string {
return "cli.ImagesSuite"
}
// TestSuccess verifies successful execution.
func (suite *ImagesSuite) TestSuccess() {
suite.RunCLI([]string{"images"})
}
func init() {
allSuites = append(allSuites, new(ImagesSuite))
}