4 ms·
I would think there maybe a "command-line" version of GUI design: supply limited default buttons for common options, but allow user customization. For example,
by hzhou321 7y ago
I would think there maybe a "command-line" version of GUI design: supply limited default buttons for common options, but allow user customization. For example, I would love to have the button from author's design but tune it specifically to my need including running a specific set of "command lines".
- e12e 7y agoNote that even rsync itself has some limited support for "profiles", like --archive.
- sirn 7y agorsync do actually support profile via option aliasing. rsync uses popt(3) to parse its command line options and popt allows you to define aliases, so you can put something like this in ~/.popt: rsync alias --sync -rpcLDvz --chmod=D0755,F0644 A call "rsync --sync foo@bar:baz/ baz" will expand the command into "rsync -rpcLDvz --chmod=D0755,F0644 ...". The "program alias newopt opt" syntax is actually popt's thing (see Option Aliasing[1]) and it works with everything that uses popt(3) for its command line parsing. [1]: https://linux.die.net/man/3/popt https://linux.die.net/man/3/popt
- zzo38computer 7y agoIf you have some common sets of options (and pipes and so on), then I think shell scripts (and shell aliases) can be used for that.