tsuyoshicho / vim-pass

Vim password-store API
https://tsuyoshicho.github.io/vim-pass/
MIT License
3 stars 0 forks source link

feat: startup funcall to promise.process like #24

Open tsuyoshicho opened 5 years ago

tsuyoshicho commented 5 years ago

see vital-Whisky/Process.txt at master · lambdalisue/vital-Whisky

totaly, gpg call cmd handling and keeping to startup resolver(currently stay only let val/funcall,process same normal)

tsuyoshicho commented 5 years ago

remain: non-agent passpharase resolve sequencial need.

tsuyoshicho commented 5 years ago

simplify - function only one.

call entry-value return (return promise)Funcref

tsuyoshicho commented 5 years ago

setup need then(result -> getvalue(result)).then(setvalue)?

error handling need (no entry data...)

tsuyoshicho commented 5 years ago

Call Path

call pass#get_startup call create_generator

create_generator call Async.Promise.Process.strart(cmd) then (reslove -> value_select(resolve.stdout)) then (resolve -> value_set(resolve) catch (error msg)

tsuyoshicho commented 5 years ago

startup using promise.defferd

then (call resolver)

tsuyoshicho commented 5 years ago

総合的なリファクタリングが必要 他をちゃんと整理完結させてから