cvengler / sysget

One package manager to rule them all
GNU General Public License v3.0
683 stars 35 forks source link

maybe it's better to define the interface? #20

Closed qiweiye closed 5 years ago

qiweiye commented 5 years ago

I like this project's idea.

But after looking the code, I feel that maybe it's better to define an interface(contains all virtual methods, such as install, remove, search), and then each package manager to implement this interface.

So, only need to compare the package name once, and choose the right inherited class, and call the related method.

cvengler commented 5 years ago

Good idea I already thought about it. Currently we have the help method which displays the functions. We truly need auto completion

cvengler commented 5 years ago

Thanks for your idea!