rewrite

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 10 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.IRewriter, error)

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

Types

type Flags

type Flags struct {
	LockfileName string
	TempDir      string
	ExcludeTags  bool
}

Flags holds all command line options for Dockerfiles, Composefiles, and Kubernetesfiles.

func NewFlags

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

NewFlags returns Flags after validating its fields. lockfileName may not contain slashes.

Jump to

Keyboard shortcuts

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