This commit introduces the `Enchantrix` library to add support for the `.trix` encrypted file format. The main changes are: - The `matrix` format has been renamed to `tim` (Terminal Isolation Matrix). - The `.tim` format is now a specialized `.trix` file. - A new `decode` command has been added to decode `.trix` and `.tim` files. - The `collect` commands now support the `trix` and `tim` formats. - A `--password` flag has been added to the `collect` commands for encryption. - A `--i-am-in-isolation` flag has been added to the `decode` command for safely decoding `.tim` files. - The decryption functionality is currently disabled due to a bug in the `Enchantrix` library. A follow-up PR will be created to re-enable it.
12 lines
478 B
Bash
Executable file
12 lines
478 B
Bash
Executable file
#!/bin/bash
|
|
# Example of using the 'borg serve' command with a .tim file.
|
|
|
|
# This script serves the contents of a .tim file using a static file server.
|
|
|
|
# Ensure the 'borg' executable is in the current directory or in the system's PATH.
|
|
# You can build it by running 'go build' in the project root.
|
|
# First, create a .tim file
|
|
./borg collect github repo https://github.com/Snider/Borg --output borg.tim --format tim
|
|
|
|
# Now, serve the .tim file
|
|
./borg serve borg.tim --port 9999
|