cmd

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package cmd provides docker-lock's cli.

Index

Constants

This section is empty.

Variables

View Source
var Version = "v0.0.1" //nolint: gochecknoglobals

Version is the docker-lock version. In the CD pipeline, this value is overridden to match the git tag.

Functions

func Execute

func Execute(client *registry.HTTPClient) error

Execute creates all of docker-lock's commands, adds appropriate commands to each other, and executes the root command.

func NewGenerateCmd

func NewGenerateCmd(client *registry.HTTPClient) (*cobra.Command, error)

NewGenerateCmd creates the command 'generate' used in 'docker lock generate'.

func NewLockCmd

func NewLockCmd() *cobra.Command

NewLockCmd creates the command 'lock' used in 'docker lock'.

func NewRewriteCmd

func NewRewriteCmd() (*cobra.Command, error)

NewRewriteCmd creates the command 'rewrite' used in 'docker lock rewrite'.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates the root command for docker-lock.

func NewVerifyCmd

func NewVerifyCmd(client *registry.HTTPClient) (*cobra.Command, error)

NewVerifyCmd creates the command 'verify' used in 'docker lock verify'.

func NewVersionCmd added in v0.0.7

func NewVersionCmd() *cobra.Command

NewVersionCmd creates the command 'version' used in 'docker lock version'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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