CyberShadow / aconfmgr

A configuration manager for Arch Linux
1.14k stars 41 forks source link

Inline editing with `CopyFile` ? #162

Closed gardar closed 1 year ago

gardar commented 1 year ago

It seems that currently there are two ways to do in-line file editing. Either with GetPackageOriginalFile or CreateFile.

In a situation where I have a config I want to copy that differs between systems but that file does not come from a package, and echoing the whole content of the file with CopyFile doesn't feel right.

Ideally what I would like to do is something similar to the examples you provide with inline editing using GetPackageOriginalFile, but using a file I have under files/ instead of getting it from a package. Is there any way CopyFile or CopyFileTo can be used to achieve this?