Documentation ¶
Overview ¶
autogo creates a shadow copy of the go packages at origin in a destination.
In other words this program will walk the directory tree at origin and for each: * directory - create a directory with the same name in destination * go-related-file - link the file into the matching destination directory
The effect is similar to:
rsync -zarv --include="*/" --include="*.sh" --exclude="*" "$from" "$to"
TODO(fejta): investigate just using rsync?
The intended use case of this program is with the autogo_generate in //autogo:def.bzl. This rule will clone your primary workspace into an autogo workspace, and then run gazelle to generate rules for go packages.
Usage:
autogo -- <ORIGIN_DIR> <DEST_DIR>
Click to show internal directories.
Click to hide internal directories.