RyanScottLewis / cutback

Backup system with the goal of creating smaller, more focused backups.
https://ryanscottlewis.github.io/cutback
MIT License
2 stars 0 forks source link

Option Interpolation #5

Open RyanScottLewis opened 5 years ago

RyanScottLewis commented 5 years ago

Right now, we use predetermined tools and we assume any tool passed to the option works like the default tool for that option. Users should be able to set entire commands, although some commands are quite complicated (see find or compress).

These would require interpolations within themselves, for example xz needs -T #{@paths.manifest} so it could do something like -T %{manifest} or -T $(manifest).

This would enable users to use fzf instead of find for the search step, for example, which at the moment would not work at all since fzf's options are wildly different.

This causes Command and it's subclasses to be obsolete, allowing us to rename Action to Command to align more with the command pattern as laid out in #20.