pub fn run(self, template: Template) -> Result<()> {
        debug!("copyright_holder = {:?}", self.copyright_holder);
        debug!("copyright_year = {:?}", self.copyright_year);
        debug!("input = {:?}", self.input);
        debug!("output = {:?}", self.output);
        let manifest = manifest(self.input.as_ref())?;
        let package = package(&manifest, None)?;
        let mut destination = super::destination(self.output.as_ref())?;
        let template = mustache::compile_str(template.to_str())?;
        let data = MapBuilder::new()
            .insert_str("copyright-year", self.copyright_year())
            .insert_str("copyright-holder", self.copyright_holder(&package)?)
            .build();
        template
            .render_data(&mut destination, &data)
            .map_err(Error::from)
    }
/// Prints a license based on the built context.

Prints a license based on the built context.
Prints a license based on the built context .
pub fn run(self, template: Template) -> Result<()> {
        debug!("copyright_holder = {:?}", self.copyright_holder);
        debug!("copyright_year = {:?}", self.copyright_year);
        debug!("input = {:?}", self.input);
        debug!("output = {:?}", self.output);
        let manifest = manifest(self.input.as_ref())?;
        let package = package(&manifest, None)?;
        let mut destination = super::destination(self.output.as_ref())?;
        let template = mustache::compile_str(template.to_str())?;
        let data = MapBuilder::new()
            .insert_str("copyright-year", self.copyright_year())
            .insert_str("copyright-holder", self.copyright_holder(&package)?)
            .build();
        template
            .render_data(&mut destination, &data)
            .map_err(Error::from)
    }
pub fn run ( self , template : Template ) -> Result < ( ) > { debug ! ( " " self copyright_holder ) ; debug ! ( " " self copyright_year ) ; debug ! ( " " self input ) ; debug ! ( " " self output ) ; let manifest = manifest ( self . input . as_ref ( ) ) ? ; let package = package ( & manifest , None ) ? ; let mut destination = super :: destination ( self . output . as_ref ( ) ) ? ; let template = mustache :: compile_str ( template . to_str ( ) ) ? ; let data = MapBuilder :: new ( ) . insert_str ( " " , self . copyright_year ( ) ) . insert_str ( " " , self . copyright_holder ( & package ) ? ) . build ( ) ; template . render_data ( & mut destination , & data ) . map_err ( Error :: from ) }
Prints a license based on the built context.
Prints a license based on the built context .
self
template
Template
self
template
Template