copy

command
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

copy is a tool for copying parts of files. It reads a set of source files, collecting named sequences of lines to copy to a destination file. It then reads the destination files, replacing the named sections there, called sinks, with sections of the same name from the source files.

Files involved in the copy contain comments of the form

//copy:COMMAND ARGS...

There can't be spaces between the "//", the word "copy:", and the command name.

Commands that appear in source files are:

start FILENAME NAME
   Start copying to the sink NAME in FILENAME.
stop
   Stop copying.

Commands that appear in destination files are:

sink NAME
   Where to start copying lines marked with NAME.
endsink NAME
   Where to end a replacement. Inserted by the tool.

Jump to

Keyboard shortcuts

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