[][src]Function rapture::capture::capture

pub fn capture<S: Display>(package_name: S, directory: S) -> Result<(), String>

This is the heart of the capture subcommand. This function walks the over the folders and files of an entire file tree, and generates a rapture script that will recreate that exact file tree within the package installation directory.

It takes two arguments: package_name, and directory.

package_name is the name of the package the output rapture script will install to. Basically, it just adds package your_package_name_here to the top of the output script.

directory is the path to the directory to capture.