fabiospampinato / cliflix

Watch anything instantaneously, just write its name.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tilde expansion

hp4k1h5 opened this issue · comments

if you use a ~ to set downloads.path in the config, cliflix will download to its local node_modules subdirectory.

example config: {"downloads": {"path": "~/Downloads"}}

Expected result: downloads to be in $HOME/Downloads
Actual result: downloads to path/to/global_node_modules/cliflix/~/Downloads

i believe a special handler is needed when options are loaded and _.merge()'d

_.mergeWith ( Config, localConfig, ( prev, next ) => {

id be happy to submit a pr if you are accepting

Sure, PR welcome

Duplicate of #38