Open lamont-granquist opened 4 years ago
If you're on a Unix (I assume those numbers are from your history
command), an alias is a handy way to customize commands:
$ alias cki='ckan install --no-recommends'
$ cki KRASH
About to install...
* KRASH - Kerbal Ramification Artifical Simulation Hub (simulation mod for KSP) 0.5.32 (spacedock.info, 104.2 KiB)
* Toolbar Controller 1:0.1.9.4 (cached)
* ClickThrough Blocker 0.1.9.5 (cached)
* Zero MiniAVC 1:1.1.0.1 (cached)
Continue? [Y/n]
not wild about that exact solution since i type fast enough that i'd prefer API consistency (everything prefixed by 'ckan') and i don't want to invent my own entire abbreviated api language (my typing speed >> my memory), but i supposed i can write a wrapper script that inspects argv[1] and manipulates it.
Problem
I'm really tired of adding --no-recommends to every single ckan install line. Occasionally I typo it. Sometimes I forget it when I don't actually mean to:
Suggestions
I really don't ever want this, and would like a way to set it being the default. That might mean that
--recommends
should be implemented (if its not already) as a way to override the false default on a case-by-case basis. As you can see, though, I actually never use anything other than--no-recommends
except entirely by mistake, so I certainly could use a way to set the default to--no-recommends
even if there was no way to override it short of unsetting that default (really, I'll just go research the recommended mods and install them one by one assuming I want them or not).