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.
10 lines
218 B
Go
10 lines
218 B
Go
package tim
|
|
|
|
import "github.com/Snider/Enchantrix/pkg/trix"
|
|
|
|
// DefaultSpec returns a default runc spec.
|
|
func defaultConfig() (*trix.Trix, error) {
|
|
return &trix.Trix{
|
|
Header: make(map[string]interface{}),
|
|
}, nil
|
|
}
|