You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
When you use the --overwrite flag in a factotum dot command, you get a confusing error if the file does not exist yet.
It would be better if the flag overwrites the file if it already exists and creates it if not.
For now, this flag seems pretty useless as you have to check if the file already exist to know if you need to apply the flag.
The text was updated successfully, but these errors were encountered:
You're quite right - it would be better to work in the way you suggest! I'll add this into the next release.
For now as a workaround - using factotum dot without the --output option prints the dotfile to stdout. This can be piped to a file for the same result, for example:
When the --overwrite flag is used it should not fail if the file does not exist. It should instead
create the file as normal. This is similar to '>' when piping data to a file (in a shell).
When you use the
--overwrite
flag in afactotum dot
command, you get a confusing error if the file does not exist yet.It would be better if the flag overwrites the file if it already exists and creates it if not.
For now, this flag seems pretty useless as you have to check if the file already exist to know if you need to apply the flag.
The text was updated successfully, but these errors were encountered: