mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-08 12:35:41 +00:00
Update compress_files docs
This commit is contained in:
parent
e816ec1f8f
commit
923a0601eb
@ -279,6 +279,8 @@ pub fn run(args: Opts, question_policy: QuestionPolicy) -> crate::Result<()> {
|
|||||||
// files are the list of paths to be compressed: ["dir/file1.txt", "dir/file2.txt"]
|
// files are the list of paths to be compressed: ["dir/file1.txt", "dir/file2.txt"]
|
||||||
// formats contains each format necessary for compression, example: [Tar, Gz] (in compression order)
|
// formats contains each format necessary for compression, example: [Tar, Gz] (in compression order)
|
||||||
// output_file is the resulting compressed file name, example: "compressed.tar.gz"
|
// output_file is the resulting compressed file name, example: "compressed.tar.gz"
|
||||||
|
//
|
||||||
|
// Returns Ok(true) if compressed all files successfully, and Ok(false) if user opted to skip files
|
||||||
fn compress_files(
|
fn compress_files(
|
||||||
files: Vec<PathBuf>,
|
files: Vec<PathBuf>,
|
||||||
formats: Vec<Extension>,
|
formats: Vec<Extension>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user