Struct p4_cmd::print::PrintCommand[][src]

pub struct PrintCommand<'p, 'f> { /* fields omitted */ }

Write a depot file to standard output

Retrieve the contents of a depot file to the client's standard output. The file is not synced. If file is specified using client syntax, Perforce uses the client view to determine the corresponding depot file.

By default, the head revision is printed. If the file argument includes a revision, the specified revision is printed. If the file argument has a revision range, then only files selected by that revision range are printed, and the highest revision in the range is printed. For details about revision specifiers, see 'p4 help revisions'.

Examples

let p4 = p4_cmd::P4::new();
let files = p4.print("//depot/dir/file").run().unwrap();
for file in files {
    println!("{:?}", file);
}

Methods

impl<'p, 'f> PrintCommand<'p, 'f>
[src]

The -a flag prints all revisions within the specified range, rather than just the highest revision in the range.

The -k flag suppresses keyword expansion.

The -m flag limits print to the first 'max' number of files.

Run the print command.

Trait Implementations

impl<'p, 'f> Debug for PrintCommand<'p, 'f>
[src]

Formats the value using the given formatter. Read more

impl<'p, 'f> Clone for PrintCommand<'p, 'f>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'p, 'f> Send for PrintCommand<'p, 'f>

impl<'p, 'f> Sync for PrintCommand<'p, 'f>