Skip to contents

Displays the contents of a dockerignore object in a readable format, showing each pattern on a new line as it would appear in an actual .dockerignore file.

Usage

# S3 method for class 'dockerignore'
print(x, ...)

Arguments

x

A dockerignore object

...

Additional arguments (not used)

Value

Invisibly returns the dockerignore object

See also

dockerignore() for creating a dockerignore object & write_dockerignore() for writing to a .dockerignore file

Other dockerignore core functions: c.dockerignore(), check_dockerignore(), dockerignore(), is_dockerignore()

Examples

di <- dockerignore() |>
  di_add(c(".git/", "*.log", "node_modules/"))
print(di)
#> .git/
#> *.log
#> node_modules/