This application was created as part of a coding challenge. The challenge details can be found here.
The following resources were used for implementing and understanding the functionality of the tar command:
A simple tape archive-like cli tool created in Rust. This implementation mimics some, but not all of the functionalities of the original tar command.
To run the cctar command line tool, follow these steps:
- Clone the repository.
- Build the applikcation using
cargo build --release. That will generate the executable in thetarget/releasedirectory calledcctar. - Run the application.
You can run the application with the following arguments:
cctar -c <archive_name> <file1> <file2> ...to create an archive.cctar -x <archive_name>to extract an archive.cctar -t <archive_name>to list the contents of an archive.
The application accepts file paths (using the -f flag) and piped in files (using cat <file> | or other similar tools).