rewrite

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package rewrite provides the "rewrite" command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRewriteCmd

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

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

func SetupRewriter

func SetupRewriter(flags *Flags) (*rewrite.Rewriter, error)

SetupRewriter creates a Rewriter configured for docker-lock's cli.

Types

type Flags

type Flags struct {
	LockfileName string
	TempDir      string
	ExcludeTags  bool
}

Flags are all possible flags to initialize a Rewriter.

func NewFlags

func NewFlags(
	lockfileName string,
	tempDir string,
	excludeTags bool,
) (*Flags, error)

NewFlags returns Flags after validating its fields.

Jump to

Keyboard shortcuts

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