Borg/examples/run_tim_programmatically/main.go
google-labs-jules[bot] 3398fabb14 feat: Add trix encryption and format
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.
2025-11-14 13:47:27 +00:00

16 lines
271 B
Go

package main
import (
"log"
"github.com/Snider/Borg/pkg/tim"
)
func main() {
log.Println("Executing tim with Borg...")
// Execute the tim using the Borg package.
if err := tim.Run("programmatic.tim"); err != nil {
log.Fatalf("Failed to run tim: %v", err)
}
}